TMTPTypeUintBase Class Reference

class TMTPTypeUintBase : public MMTPType

Defines the MTP unsigned integer data type base class for 8 to 32-bit integers. This class is intended for derivation.

Inherits from

Constructor & Destructor Documentation

TMTPTypeUintBase(TUint, TUint, TInt)

IMPORT_CTMTPTypeUintBase(TUintaData,
TUintaSize,
TIntaType
)[protected]

Constructor.

Parameters

TUint aDataThe UINT data with which the type is to be initialised.
TUint aSizeThe size of the UINT data type.
TInt aTypeThe UINT data type code.

Member Functions Documentation

FirstReadChunk(TPtrC8 &)

IMPORT_C TIntFirstReadChunk(TPtrC8 &aChunk)const [virtual]

Initiates a data read sequence on the type by providing a const pointer to the first in the sequence of data chunks that make up the type's data stream. Subsequent chunks in the sequence can be sequentially retrieved using NextReadChunk. NextReadChunk.

Parameters

TPtrC8 & aChunkThe const pointer to be set to point to the start of the first data chunk. This pointer's length is set to zero if no data chunk exists or a processing error occurs.

FirstWriteChunk(TPtr8 &)

IMPORT_C TIntFirstWriteChunk(TPtr8 &aChunk)[virtual]

Initiates a data write sequence on the type by providing a non-const pointer to the first in the sequence of data chunks that make up the type's data stream. Subsequent chunks in the sequence can be sequentially retrieved using NextWriteChunk. NextWriteChunk.

Parameters

TPtr8 & aChunkThe non-const pointer to be set to point to the start of the first data chunk. If successful, the pointer's Length is set to zero, and MaxLength is set to the available capacity of the data chunk. If not successful, the pointer's MaxLength is set to zero.

NextReadChunk(TPtrC8 &)

IMPORT_C TIntNextReadChunk(TPtrC8 &aChunk)const [virtual]

Continues a data read sequence on the type by providing a const pointer to the next in the sequence of data chunks that make up the type's data stream. This data read sequence should have been previously initiated by invoking FirstReadChunk. FirstReadChunk.

Parameters

TPtrC8 & aChunkThe const pointer to be set to point to the start of the next data chunk. This pointer's length is set to zero if no data chunk exists or a processing error occurs.

NextWriteChunk(TPtr8 &)

IMPORT_C TIntNextWriteChunk(TPtr8 &aChunk)[virtual]

Continues a data write sequence on the type by providing a non-const pointer to the next in the sequence of data chunks that make up the type's data stream. This data write sequence should have been previously initiated by invoking FirstWriteChunk. FirstReadChunk.

Parameters

TPtr8 & aChunkThe non-const pointer to be set to point to the start of the next data chunk. If successful, the pointer's Length is set to zero, and MaxLength is set to the available capacity of the data chunk. If not successful, the pointer's MaxLength is set to zero..

Size()

IMPORT_C TUint64Size()const [virtual]

Provides the size in bytes of the MTP data type.

Type()

IMPORT_C TUintType()const [virtual]

Provides the MTP data type identification datacode.

Member Data Documentation

TUint iData

TUint iData[protected]

The data buffer.

TUint64 iSize

TUint64 iSize[private]

The type's size in bytes.

TUint iType

TUint iType[private]

The type's MTP datatype code.