Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: btsdp.h
Link against: sdpdatabase.lib

Class SdpUtil

class SdpUtil;

Description

Integer Putter/Getter Utility Class

Utility class for putting integer values into/getting integer values out of descriptors

Members

Defined in SdpUtil:
GetUint(), GetUint128(), GetUint64(), PutUint(), PutUint128(), PutUint64()


Member functions


GetUint()

static IMPORT_C TUint GetUint(const TDesC8 &aData);

Description

Gets an unsigned integer from a descriptor.

Parameters

const TDesC8 &aData

The descriptor containing the integer

Return value

TUint

The unsigned integer contained in the descriptor


PutUint()

static IMPORT_C void PutUint(TUint8 *aPtr, TInt64 aInt, TInt aNumberOfBytes);

Description

Puts an unsigned integer into a descriptor.

Parameters

TUint8 *aPtr

Pointer to the descriptor's data field

TInt64 aInt

Integer to be copied into descriptor

TInt aNumberOfBytes

Number of bytes occupied by integer


PutUint64()

static IMPORT_C void PutUint64(TUint8 *aPtr, const TUint64 &aNumber);

Description

Parameters

TUint8 *aPtr

const TUint64 &aNumber


GetUint64()

static IMPORT_C void GetUint64(const TDesC8 &aData, TUint64 &aNumber);

Description

Parameters

const TDesC8 &aData

TUint64 &aNumber


PutUint128()

static IMPORT_C void PutUint128(TUint8 *aPtr, const TUint64 &aLo, const TUint64 &aHi);

Description

Puts two unsigned 64 bit integers into a descriptor.

Parameters

TUint8 *aPtr

Pointer to the descriptor's data field

const TUint64 &aLo

The 64 lower bits of a 128 bit integer to be copied into the descriptor

const TUint64 &aHi

The 64 higher bits of a 128 bit integer to be copied into the descriptor


GetUint128()

static IMPORT_C void GetUint128(const TDesC8 &aData, TUint64 &aLo, TUint64 &aHi);

Description

Parameters

const TDesC8 &aData

TUint64 &aLo

TUint64 &aHi