TCardinality Class Reference

class TCardinality

Compact stream format for positive integer values in the range 0 to 536,870,911 ((2^29)-1). Values in the range 0-127 are stored in a single byte, 128-16383 in two bytes and other values in 4 bytes.

The class provides conversion to and from TInt, and both externalization and internalization functions. It is used to significant effect within Symbian code.

Public Member Functions
TCardinality()
TCardinality(TInt)
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidInternalizeL(RReadStream &)
operator TInt()
Private Member Functions
IMPORT_C void__DbgChkRange(TInt)
Private Attributes
TInt iCount

Constructor & Destructor Documentation

TCardinality()

TCardinality()[inline]

TCardinality(TInt)

TCardinality(TIntaCount)[inline]

Constructs the object with the specified value.

Parameters

TInt aCountThe value for this object.

Member Functions Documentation

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Parameters

RReadStream & aStream

__DbgChkRange(TInt)

IMPORT_C void__DbgChkRange(TIntaCount)[private, static]

Parameters

TInt aCount

operator TInt()

operator TInt()const [inline]

Member Data Documentation

TInt iCount

TInt iCount[private]