TDereferencer Class Reference

class TDereferencer

This class is useful when you want to dereference character data This class check for buffer overflow This is much faster than stream classes provided by symbian During the ETM traces we found that those classes are 3 FPS less than these utility classes This class won't be checking for data alignment.

Constructor & Destructor Documentation

TDereferencer(TUint8 *, TInt)

TDereferencer ( TUint8 * aBuf,
TInt aLength
) [inline]

Parameters

TUint8 * aBuf
TInt aLength

TDereferencer(const TDesC8 &)

TDereferencer ( const TDesC8 & aBuf ) [inline]

Parameters

const TDesC8 & aBuf

Member Functions Documentation

CheckOutOfBoundL(TInt)

void CheckOutOfBoundL ( TInt aLength ) [private, inline]

Parameters

TInt aLength

DerefInt16L(TInt)

TInt16 DerefInt16L ( TInt aAt = 0 ) [inline]

Parameters

TInt aAt = 0

DerefInt32L(TInt)

TInt32 DerefInt32L ( TInt aAt = 0 ) [inline]

Parameters

TInt aAt = 0

DerefInt8ArrayL(TInt, TInt)

TUint8 * DerefInt8ArrayL ( TInt aLength,
TInt aAt = 0
) [inline]

Parameters

TInt aLength
TInt aAt = 0

DerefInt8L(TInt)

TInt8 DerefInt8L ( TInt aAt = 0 ) [inline]

Parameters

TInt aAt = 0

DerefReal32L(TInt)

TReal32 DerefReal32L ( TInt aAt = 0 ) [inline]

Parameters

TInt aAt = 0

DerefReal64L(TInt)

TReal64 DerefReal64L ( TInt aAt = 0 ) [inline]

Parameters

TInt aAt = 0

GetLength()

TInt GetLength ( ) [inline]

Retrieves the silze of the buffer

GetPtr()

TPtr8 GetPtr ( ) [inline]

Retrieves the ptr to the data stream

GetReadingPos()

TInt GetReadingPos ( ) [inline]

Returns current reading position

IsSafeL(TInt, TInt)

void IsSafeL ( TInt aLength,
TInt aAt = 0
) [inline]

Parameters

TInt aLength
TInt aAt = 0

SkipL(TInt)

void SkipL ( TInt aLength ) [inline]

Parameters

TInt aLength

operator TInt16()

operator TInt16 ( ) [inline]

operator TInt32()

operator TInt32 ( ) [inline]

operator TInt8()

operator TInt8 ( ) [inline]

operator TReal32()

operator TReal32 ( ) [inline]

operator TReal64()

operator TReal64 ( ) [inline]

Member Data Documentation

TInt iDataLength

TInt iDataLength [private]

TUint8 * iReadStream

TUint8 * iReadStream [private]

TInt iTotalRead

TInt iTotalRead [private]