TElementEncoder Class Reference

class TElementEncoder

Constructor & Destructor Documentation

TElementEncoder(TDes8 &)

IMPORT_C TElementEncoder ( TDes8 & aWriteBuffer )

Parameters

TDes8 & aWriteBuffer

Member Functions Documentation

EncodedSize(TSdpElementType, TUint)

IMPORT_C TInt EncodedSize ( TSdpElementType aType,
TUint aDataSize
) [static]

Parameters

TSdpElementType aType
TUint aDataSize

HeaderSize(TSdpElementType, TUint)

IMPORT_C TInt HeaderSize ( TSdpElementType aType,
TUint aDataSize
) [static]

Parameters

TSdpElementType aType
TUint aDataSize

PutUint(TUint8 *, TUint, TInt)

IMPORT_C void PutUint ( TUint8 * aPtr,
TUint aUint,
TInt aNumberOfBytes
) [static]

Parameters

TUint8 * aPtr
TUint aUint
TInt aNumberOfBytes

SizeDescriptor(TSdpElementType, TUint)

IMPORT_C TSdpElementSizeDesc SizeDescriptor ( TSdpElementType aType,
TUint aDataSize
) [static]

Parameters

TSdpElementType aType
TUint aDataSize

WriteBoolean(TBool)

IMPORT_C TInt WriteBoolean ( TBool aBoolean )

Parameters

TBool aBoolean

WriteDEA(TUint)

IMPORT_C TInt WriteDEA ( TUint aDataSize )

Parameters

TUint aDataSize

WriteDES(TUint)

IMPORT_C TInt WriteDES ( TUint aDataSize )

Parameters

TUint aDataSize

WriteDesc(const TDesC8 &)

IMPORT_C TInt WriteDesc ( const TDesC8 & aDesc )

Append descriptor onto the write buffer. returns the number of bytes that did NOT fit into the write buffer.

Parameters

const TDesC8 & aDesc

WriteElement(TSdpElementType, const TDesC8 &)

IMPORT_C TInt WriteElement ( TSdpElementType aType,
const TDesC8 & aData
)

Parameters

TSdpElementType aType
const TDesC8 & aData

WriteHeader(TSdpElementType, TUint)

IMPORT_C TInt WriteHeader ( TSdpElementType aType,
TUint aDataSize
)

Parameters

TSdpElementType aType
TUint aDataSize

WriteInt(const TDesC8 &)

IMPORT_C TInt WriteInt ( const TDesC8 & aInt )

Parameters

const TDesC8 & aInt

WriteInt(TInt, TInt)

IMPORT_C TInt WriteInt ( TInt aVal,
TInt aNumberOfBytes = 4
)

Parameters

TInt aVal
TInt aNumberOfBytes = 4

WriteNil()

IMPORT_C TInt WriteNil ( )

WriteString(const TDesC8 &)

IMPORT_C TInt WriteString ( const TDesC8 & aString )

Parameters

const TDesC8 & aString

WriteURL(const TDesC8 &)

IMPORT_C TInt WriteURL ( const TDesC8 & aUrl )

Parameters

const TDesC8 & aUrl

WriteUUID(const TUUID &)

IMPORT_C TInt WriteUUID ( const TUUID & aUUID )

Parameters

const TUUID & aUUID

WriteUint(const TDesC8 &)

IMPORT_C TInt WriteUint ( const TDesC8 & aUint )

Parameters

const TDesC8 & aUint

WriteUint(TUint, TInt)

IMPORT_C TInt WriteUint ( TUint aVal,
TInt aNumberOfBytes = 4
)

Parameters

TUint aVal
TInt aNumberOfBytes = 4

Member Data Documentation

TDes8 & iWriteBuf

TDes8 & iWriteBuf [private]