TElementEncoder Class Reference

class TElementEncoder
Public Member Functions
TElementEncoder(TDes8 &)
IMPORT_C TIntEncodedSize(TSdpElementType, TUint)
IMPORT_C TIntHeaderSize(TSdpElementType, TUint)
IMPORT_C voidPutUint(TUint8 *, TUint, TInt)
IMPORT_C TSdpElementSizeDescSizeDescriptor(TSdpElementType, TUint)
IMPORT_C TIntWriteBoolean(TBool)
IMPORT_C TIntWriteDEA(TUint)
IMPORT_C TIntWriteDES(TUint)
IMPORT_C TIntWriteDesc(const TDesC8 &)
IMPORT_C TIntWriteElement(TSdpElementType, const TDesC8 &)
IMPORT_C TIntWriteHeader(TSdpElementType, TUint)
IMPORT_C TIntWriteInt(const TDesC8 &)
IMPORT_C TIntWriteInt(TInt, TInt)
IMPORT_C TIntWriteNil()
IMPORT_C TIntWriteString(const TDesC8 &)
IMPORT_C TIntWriteURL(const TDesC8 &)
IMPORT_C TIntWriteUUID(const TUUID &)
IMPORT_C TIntWriteUint(const TDesC8 &)
IMPORT_C TIntWriteUint(TUint, TInt)
Private Attributes
TDes8 &iWriteBuf

Constructor & Destructor Documentation

TElementEncoder(TDes8 &)

IMPORT_CTElementEncoder(TDes8 &aWriteBuffer)

Parameters

TDes8 & aWriteBuffer

Member Functions Documentation

EncodedSize(TSdpElementType, TUint)

IMPORT_C TIntEncodedSize(TSdpElementTypeaType,
TUintaDataSize
)[static]

Parameters

TSdpElementType aType
TUint aDataSize

HeaderSize(TSdpElementType, TUint)

IMPORT_C TIntHeaderSize(TSdpElementTypeaType,
TUintaDataSize
)[static]

Parameters

TSdpElementType aType
TUint aDataSize

PutUint(TUint8 *, TUint, TInt)

IMPORT_C voidPutUint(TUint8 *aPtr,
TUintaUint,
TIntaNumberOfBytes
)[static]

Parameters

TUint8 * aPtr
TUint aUint
TInt aNumberOfBytes

SizeDescriptor(TSdpElementType, TUint)

IMPORT_C TSdpElementSizeDescSizeDescriptor(TSdpElementTypeaType,
TUintaDataSize
)[static]

Parameters

TSdpElementType aType
TUint aDataSize

WriteBoolean(TBool)

IMPORT_C TIntWriteBoolean(TBoolaBoolean)

Parameters

TBool aBoolean

WriteDEA(TUint)

IMPORT_C TIntWriteDEA(TUintaDataSize)

Parameters

TUint aDataSize

WriteDES(TUint)

IMPORT_C TIntWriteDES(TUintaDataSize)

Parameters

TUint aDataSize

WriteDesc(const TDesC8 &)

IMPORT_C TIntWriteDesc(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 TIntWriteElement(TSdpElementTypeaType,
const TDesC8 &aData
)

Parameters

TSdpElementType aType
const TDesC8 & aData

WriteHeader(TSdpElementType, TUint)

IMPORT_C TIntWriteHeader(TSdpElementTypeaType,
TUintaDataSize
)

Parameters

TSdpElementType aType
TUint aDataSize

WriteInt(const TDesC8 &)

IMPORT_C TIntWriteInt(const TDesC8 &aInt)

Parameters

const TDesC8 & aInt

WriteInt(TInt, TInt)

IMPORT_C TIntWriteInt(TIntaVal,
TIntaNumberOfBytes = 4
)

Parameters

TInt aVal
TInt aNumberOfBytes = 4

WriteNil()

IMPORT_C TIntWriteNil()

WriteString(const TDesC8 &)

IMPORT_C TIntWriteString(const TDesC8 &aString)

Parameters

const TDesC8 & aString

WriteURL(const TDesC8 &)

IMPORT_C TIntWriteURL(const TDesC8 &aUrl)

Parameters

const TDesC8 & aUrl

WriteUUID(const TUUID &)

IMPORT_C TIntWriteUUID(const TUUID &aUUID)

Parameters

const TUUID & aUUID

WriteUint(const TDesC8 &)

IMPORT_C TIntWriteUint(const TDesC8 &aUint)

Parameters

const TDesC8 & aUint

WriteUint(TUint, TInt)

IMPORT_C TIntWriteUint(TUintaVal,
TIntaNumberOfBytes = 4
)

Parameters

TUint aVal
TInt aNumberOfBytes = 4

Member Data Documentation

TDes8 & iWriteBuf

TDes8 &iWriteBuf[private]