PCStore::CDes16 Class Reference

#include <pcstore/descriptors.h>

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

Detailed Description

Class to represent 16-bit descriptor.

This class implements a subset of 16-bit descriptor's behaviour, which are necessary for the externalization and internalization of 16-bit descriptors. It encapsulates the data members containing the data, its maximum length and actual length. It also provides member functions to access and reset, but not 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 16-bit (i.e. 2-byte word) values or data items.

Constructor & Destructor Documentation

CDes16 ( )

CDes16()

CDes16 ( const CDes16 & )

CDes16(const CDes16 &aDes)

CDes16 ( TInt32 )

CDes16(TInt32aMaxLength)[explicit]

CDes16 ( const TUint16 * )

CDes16(const TUint16 *aPtr)

CDes16 ( const TUint16 *, TInt32 )

CDes16(const TUint16 *aPtr,
TInt32aLength
)

CDes16 ( const TUint16 *, TInt32, TInt32 )

CDes16(const TUint16 *aPtr,
TInt32aLength,
TInt32aMaxLength
)

~CDes16 ( )

~CDes16()

Member Function Documentation

Append ( const CDes16 & )

voidAppend(const CDes16 &aDes)

Append ( const TUint16 *, TInt32 )

voidAppend(const TUint16 *aPtr,
TInt32aLength
)

Length ( )

TInt32 Length()const

MaxLength ( )

TInt32 MaxLength()const

Ptr ( )

const TUint16 *Ptr()const

Set ( const CDes16 & )

voidSet(const CDes16 &aDes)

Set ( const TUint16 *, TInt32 )

voidSet(const TUint16 *aPtr,
TInt32aLength
)

Set ( const TUint16 *, TInt32, TInt32 )

voidSet(const TUint16 *aPtr,
TInt32aLength,
TInt32aMaxLength
)

SetLength ( TInt32 )

voidSetLength(TInt32aLength)

Size ( )

TInt32 Size()const

operator!= ( const CDes16 & )

TBool operator!=(const CDes16 &aDes)const

operator= ( const CDes16 & )

CDes16 &operator=(const CDes16 &aDes)

operator== ( const CDes16 & )

TBool operator==(const CDes16 &aDes)const