MDesSerializer Class Reference

class MDesSerializer

Interface template for the class T serialization to/from HBuf/TPtr. Class T could be any type of class (T, C, etc.).

Public Member Functions
T FromPtrC (const TPtrC &)
const HBufC * ToBuf ()

Member Functions Documentation

FromPtrC(const TPtrC &)

T FromPtrC ( const TPtrC & aPtrC ) [static]

Have to unpack object of class T from aPtrC.

Parameters

const TPtrC & aPtrC

ToBuf()

const HBufC * ToBuf ( ) const [pure virtual]

Have to pack the object of class T to HBufC. Ownership of newly created pointer is transferred to caller.