TChecksum Class Reference

class TChecksum

Checksum calculation.

Public Member Functions
TChecksum(TUint16)
IMPORT_C voidAdd(RMBufChain &, TInt)
IMPORT_C voidAdd(RMBufChain &, const RMBufPktInfo *, TInt)
voidAdd(const TUint16 *, TInt)
voidAdd(TUint16)
voidAdd(TUint32)
voidAddH(TUint16)
voidAddH(TUint32)
voidAddHi(TUint8)
voidAddLo(TUint8)
IMPORT_C TUint32Calculate(const TUint16 *, TInt)
TUint16 ComplementedFold(TUint32)
voidFold()
TUint32 Fold(TUint32)
voidInit(TUint16)
voidReverse()
TUint32 Sum()
TUint32 Sum32()
Private Attributes
TUint32 iSum

Constructor & Destructor Documentation

TChecksum(TUint16)

TChecksum(TUint16aSum = ~0)[inline]

Parameters

TUint16 aSum = ~0

Member Functions Documentation

Add(RMBufChain &, TInt)

IMPORT_C voidAdd(RMBufChain &aPacket,
TIntaOffset
)

Parameters

RMBufChain & aPacket
TInt aOffset

Add(RMBufChain &, const RMBufPktInfo *, TInt)

IMPORT_C voidAdd(RMBufChain &aPacket,
const RMBufPktInfo *aInfo,
TIntaOffset
)

Parameters

RMBufChain & aPacket
const RMBufPktInfo * aInfo
TInt aOffset

Add(const TUint16 *, TInt)

voidAdd(const TUint16 *aPtr,
TIntaLength
)[inline]

Parameters

const TUint16 * aPtr
TInt aLength

Add(TUint16)

voidAdd(TUint16aHalfWord)[inline]

Parameters

TUint16 aHalfWord

Add(TUint32)

voidAdd(TUint32aWord)[inline]

Parameters

TUint32 aWord

AddH(TUint16)

voidAddH(TUint16aHalfWord)[inline]

Parameters

TUint16 aHalfWord

AddH(TUint32)

voidAddH(TUint32aWord)[inline]

Parameters

TUint32 aWord

AddHi(TUint8)

voidAddHi(TUint8aByte)[inline]

Parameters

TUint8 aByte

AddLo(TUint8)

voidAddLo(TUint8aByte)[inline]

Parameters

TUint8 aByte

Calculate(const TUint16 *, TInt)

IMPORT_C TUint32Calculate(const TUint16 *aPtr,
TIntaLength
)[static]

Parameters

const TUint16 * aPtr
TInt aLength

ComplementedFold(TUint32)

TUint16 ComplementedFold(TUint32aSum)[static, inline]

Parameters

TUint32 aSum

Fold()

voidFold()[inline]

Fold(TUint32)

TUint32 Fold(TUint32aSum)[static, inline]

Parameters

TUint32 aSum

Init(TUint16)

voidInit(TUint16aSum = ~0)[inline]

Parameters

TUint16 aSum = ~0

Reverse()

voidReverse()[inline]

Sum()

TUint32 Sum()[inline]

Sum32()

TUint32 Sum32()[inline]

Member Data Documentation

TUint32 iSum

TUint32 iSum[private]