ObexInternalUtils Class Reference

class ObexInternalUtils : public CBase

Utility class containing on static member functions to provide internalize/externalize functionality to HBufC and HBufC8.

Inherits from

Member Functions Documentation

ExternalizeL(const HBufC *, RWriteStream &)

IMPORT_C voidExternalizeL(const HBufC *aBuf,
RWriteStream &aStream
)[static]

Externalizes a HBufC to a stream.

leave
KErrXXX Leaves with standard EPOC stream leave codes

Parameters

const HBufC * aBufThe HBufC to be externalized
RWriteStream & aStreamThe stream to be written to

ExternalizeL(const HBufC8 *, RWriteStream &)

IMPORT_C voidExternalizeL(const HBufC8 *aBuf,
RWriteStream &aStream
)[static]

Externalizes a HBufC8 to a stream.

leave
KErrXXX Leaves with standard EPOC stream leave codes

Parameters

const HBufC8 * aBufThe HBufC8 to be externalized
RWriteStream & aStreamThe stream to be written to

ExternalizeL(const TDes &, RWriteStream &)

IMPORT_C voidExternalizeL(const TDes &aBuf,
RWriteStream &aStream
)[static]

Externalizes a TDes to a stream.

leave
KErrXXX Leaves with standard EPOC stream leave codes

Parameters

const TDes & aBufThe TDes to be externalized
RWriteStream & aStreamThe stream to be written to

ExternalizeL(const TDes8 &, RWriteStream &)

IMPORT_C voidExternalizeL(const TDes8 &aBuf,
RWriteStream &aStream
)[static]

Externalizes a TDes8 to a stream.

leave
KErrXXX Leaves with standard EPOC stream leave codes

Parameters

const TDes8 & aBufThe TDes8 to be externalized
RWriteStream & aStreamThe stream to be written to

InternalizeL(HBufC *&, RReadStream &)

IMPORT_C voidInternalizeL(HBufC *&aBuf,
RReadStream &aStream
)[static]

Internalizes a HBufC from a stream.

leave
KErrXXX Leaves with standard EPOC stream and memory allocation leave codes

Parameters

HBufC *& aBufThe HBufC to be internalized
RReadStream & aStreamThe stream to be read from

InternalizeL(HBufC8 *&, RReadStream &)

IMPORT_C voidInternalizeL(HBufC8 *&aBuf,
RReadStream &aStream
)[static]

Internalizes a HBufC8 from a stream.

leave
KErrXXX Leaves with standard EPOC stream and memory allocation leave codes

Parameters

HBufC8 *& aBufThe HBufC8 to be internalized
RReadStream & aStreamThe stream to be read from

InternalizeL(TDes &, RReadStream &)

IMPORT_C voidInternalizeL(TDes &aBuf,
RReadStream &aStream
)[static]

Internalizes a TDes from a stream.

leave
KErrXXX Leaves with standard EPOC stream and memory allocation leave codes
leave
KErrOverflow if the incoming data is too big for the TBuf provided

Parameters

TDes & aBufThe TDes to be internalized
RReadStream & aStreamThe stream to be read from

InternalizeL(TDes8 &, RReadStream &)

IMPORT_C voidInternalizeL(TDes8 &aBuf,
RReadStream &aStream
)[static]

Internalizes a TDes8 from a stream.

leave
KErrXXX Leaves with standard EPOC stream and memory allocation leave codes
leave
KErrOverflow if the incoming data is too big for the TBuf provided

Parameters

TDes8 & aBufThe TDes8 to be internalized
RReadStream & aStreamThe stream to be read from

Panic(TObexInternalUtilsPanic)

IMPORT_C voidPanic(TObexInternalUtilsPanicaPanic)[static]

Indicates Panic originates from Obex MTM

Parameters

TObexInternalUtilsPanic aPanicThe type of TObexInternalUtilsPanic which has taken place

Member Enumerations Documentation

Enum TObexInternalUtilsPanic

Enumerators

EObexBadStreamVersion