TMTPTypeUint128 Class Reference

class TMTPTypeUint128 : public MMTPType

Defines the MTP unsigned 128-bit integer data type.

Inherits from

Constructor & Destructor Documentation

TMTPTypeUint128()

IMPORT_CTMTPTypeUint128()

Default constructor.

TMTPTypeUint128(const TPtrC8 &)

IMPORT_CTMTPTypeUint128(const TPtrC8 &aData)

Conversion constructor.

Parameters

const TPtrC8 & aDataThe initial data value.

TMTPTypeUint128(const TUint64, const TUint64)

IMPORT_CTMTPTypeUint128(const TUint64aUpperValue,
const TUint64aLowerValue
)

Conversion constructor.

Parameters

const TUint64 aUpperValue
const TUint64 aLowerValue

Member Functions Documentation

Compare(const TMTPTypeUint128 &)

IMPORT_C TIntCompare(const TMTPTypeUint128 &aR)const

Parameters

const TMTPTypeUint128 & aR

Compare(const TUint64, const TUint64)

IMPORT_C TIntCompare(const TUint64aRUpper,
const TUint64aRLower
)const

Parameters

const TUint64 aRUpper
const TUint64 aRLower

Equal(const TMTPTypeUint128 &)

IMPORT_C TBoolEqual(const TMTPTypeUint128 &aR)const

Parameters

const TMTPTypeUint128 & aR

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.

LowerValue()

IMPORT_C TUint64LowerValue()const

Provides the least significant portion of the data type.

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..

Set(TUint64, TUint64)

IMPORT_C voidSet(TUint64aUpperValue,
TUint64aLowerValue
)

Sets the data type to the specified value.

Parameters

TUint64 aUpperValue
TUint64 aLowerValue

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.

UpperValue()

IMPORT_C TUint64UpperValue()const

Provides the most significant portion of type's value.

Member Data Documentation

const TInt KMTPTypeUint128OffsetLS

const TIntKMTPTypeUint128OffsetLS[private, static]

Least significant 64-bit buffer offset.

const TInt KMTPTypeUint128OffsetMS

const TIntKMTPTypeUint128OffsetMS[private, static]

Most significant 64-bit buffer offset.

TBuf8< KMTPTypeUINT128Size > iData

TBuf8< KMTPTypeUINT128Size >iData[protected]

The data buffer.