PCStore::CDes8 Class Reference

#include <pcstore/descriptors.h>

class PCStore::CDes8
Public Member Functions
CDes8()
CDes8(const CDes8 &)
CDes8(TInt32)
CDes8(const TUint8 *)
CDes8(const TUint8 *, TInt32)
CDes8(const TUint8 *, TInt32, TInt32)
~CDes8()
voidAppend(const CDes8 &)
voidAppend(const TUint8 *, TInt32)
TInt32 Length()
TInt32 MaxLength()
const TUint8 *Ptr()
voidSet(const CDes8 &)
voidSet(const TUint8 *, TInt32)
voidSet(const TUint8 *, TInt32, TInt32)
voidSetLength(TInt32)
TInt32 Size()
TBool operator!=(const CDes8 &)
CDes8 &operator=(const CDes8 &)
TBool operator==(const CDes8 &)

Detailed Description

Class to represent 8-bit descriptors.

This class implements a subset of 8-bit descriptor's behaviour, which are necessary for the externalization and internalization of 8-bit descriptors. It encapsulates the data members containing the data, its maximum length and actual length. It also provides member functions to append and reset the data, as well as get the pointer of the data. However, there is no method to partly modify the data.

The constructors, Set, Append, and assignment methods take a copy of the data they're given, which means it allocates memory to hold the data and releases it when needed. Data represented by this class is treated as a contiguous set of 8-bit (i.e. single byte) values or data items.

Constructor & Destructor Documentation

CDes8 ( )

CDes8()

CDes8 ( const CDes8 & )

CDes8(const CDes8 &aDes)

CDes8 ( TInt32 )

CDes8(TInt32aMaxLength)[explicit]

CDes8 ( const TUint8 * )

CDes8(const TUint8 *aPtr)

CDes8 ( const TUint8 *, TInt32 )

CDes8(const TUint8 *aPtr,
TInt32aLength
)

CDes8 ( const TUint8 *, TInt32, TInt32 )

CDes8(const TUint8 *aPtr,
TInt32aLength,
TInt32aMaxLength
)

~CDes8 ( )

~CDes8()

Member Function Documentation

Append ( const CDes8 & )

voidAppend(const CDes8 &aDes)

Append ( const TUint8 *, TInt32 )

voidAppend(const TUint8 *aPtr,
TInt32aLength
)

Length ( )

TInt32 Length()const

MaxLength ( )

TInt32 MaxLength()const

Ptr ( )

const TUint8 *Ptr()const

Set ( const CDes8 & )

voidSet(const CDes8 &aDes)

Set ( const TUint8 *, TInt32 )

voidSet(const TUint8 *aPtr,
TInt32aLength
)

Set ( const TUint8 *, TInt32, TInt32 )

voidSet(const TUint8 *aPtr,
TInt32aLength,
TInt32aMaxLength
)

SetLength ( TInt32 )

voidSetLength(TInt32aLength)

Size ( )

TInt32 Size()const

operator!= ( const CDes8 & )

TBool operator!=(const CDes8 &aDes)const

operator= ( const CDes8 & )

CDes8 &operator=(const CDes8 &aDes)

operator== ( const CDes8 & )

TBool operator==(const CDes8 &aDes)const