TChecksum Class Reference

class TChecksum

Checksum calculation.

Constructor & Destructor Documentation

TChecksum(TUint16)

TChecksum ( TUint16 aSum = ~0 ) [inline]

Parameters

TUint16 aSum = ~0

Member Functions Documentation

Add(RMBufChain &, TInt)

IMPORT_C void Add ( RMBufChain & aPacket,
TInt aOffset
)

Parameters

RMBufChain & aPacket
TInt aOffset

Add(RMBufChain &, const RMBufPktInfo *, TInt)

IMPORT_C void Add ( RMBufChain & aPacket,
const RMBufPktInfo * aInfo,
TInt aOffset
)

Parameters

RMBufChain & aPacket
const RMBufPktInfo * aInfo
TInt aOffset

Add(const TUint16 *, TInt)

void Add ( const TUint16 * aPtr,
TInt aLength
) [inline]

Parameters

const TUint16 * aPtr
TInt aLength

Add(TUint16)

void Add ( TUint16 aHalfWord ) [inline]

Parameters

TUint16 aHalfWord

Add(TUint32)

void Add ( TUint32 aWord ) [inline]

Parameters

TUint32 aWord

AddH(TUint16)

void AddH ( TUint16 aHalfWord ) [inline]

Parameters

TUint16 aHalfWord

AddH(TUint32)

void AddH ( TUint32 aWord ) [inline]

Parameters

TUint32 aWord

AddHi(TUint8)

void AddHi ( TUint8 aByte ) [inline]

Parameters

TUint8 aByte

AddLo(TUint8)

void AddLo ( TUint8 aByte ) [inline]

Parameters

TUint8 aByte

Calculate(const TUint16 *, TInt)

IMPORT_C TUint32 Calculate ( const TUint16 * aPtr,
TInt aLength
) [static]

Parameters

const TUint16 * aPtr
TInt aLength

ComplementedFold(TUint32)

TUint16 ComplementedFold ( TUint32 aSum ) [static, inline]

Parameters

TUint32 aSum

Fold()

void Fold ( ) [inline]

Fold(TUint32)

TUint32 Fold ( TUint32 aSum ) [static, inline]

Parameters

TUint32 aSum

Init(TUint16)

void Init ( TUint16 aSum = ~0 ) [inline]

Parameters

TUint16 aSum = ~0

Reverse()

void Reverse ( ) [inline]

Sum()

TUint32 Sum ( ) [inline]

Sum32()

TUint32 Sum32 ( ) [inline]

Member Data Documentation

TUint32 iSum

TUint32 iSum [private]