TChecksum Class Reference

#include <in_chk.h>

Link against: inhook6.lib

class TChecksum
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()

Detailed Description

Checksum calculation.

Constructor & Destructor Documentation

TChecksum ( TUint16 )

TChecksum(TUint16aSum = ~0)[inline]

Member Function Documentation

Add ( RMBufChain &, TInt )

IMPORT_C voidAdd(RMBufChain &aPacket,
TIntaOffset
)

Add ( RMBufChain &, const RMBufPktInfo *, TInt )

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

Add ( const TUint16 *, TInt )

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

Add ( TUint16 )

voidAdd(TUint16aHalfWord)[inline]

Add ( TUint32 )

voidAdd(TUint32aWord)[inline]

AddH ( TUint16 )

voidAddH(TUint16aHalfWord)[inline]

AddH ( TUint32 )

voidAddH(TUint32aWord)[inline]

AddHi ( TUint8 )

voidAddHi(TUint8aByte)[inline]

AddLo ( TUint8 )

voidAddLo(TUint8aByte)[inline]

Calculate ( const TUint16 *, TInt )

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

ComplementedFold ( TUint32 )

TUint16 ComplementedFold(TUint32aSum)[static, inline]

Fold ( )

voidFold()[inline]

Fold ( TUint32 )

TUint32 Fold(TUint32aSum)[static, inline]

Init ( TUint16 )

voidInit(TUint16aSum = ~0)[inline]

Reverse ( )

voidReverse()[inline]

Sum ( )

TUint32 Sum()[inline]

Sum32 ( )

TUint32 Sum32()[inline]