Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:


Member functions


GetUint(const TDesC8 &)

IMPORT_C static 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(TUint8 *,TInt64,TInt)

IMPORT_C static 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(TUint8 *,const TUint64 &)

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

Description

Parameters

TUint8 *aPtr

const TUint64 &aNumber


GetUint64(const TDesC8 &,TUint64 &)

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

Description

Parameters

const TDesC8 &aData

TUint64 &aNumber


PutUint128(TUint8 *,const TUint64 &,const TUint64 &)

IMPORT_C static 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(const TDesC8 &,TUint64 &,TUint64 &)

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

Description

Parameters

const TDesC8 &aData

TUint64 &aLo

TUint64 &aHi