sipxportlib  Version 3.3
Public Member Functions | Protected Attributes | List of all members
UtlCrc32 Class Reference

#include <UtlCrc32.h>

Public Member Functions

 UtlCrc32 ()
void reset ()
void calc (unsigned char ch)
void calc (unsigned char *pData, size_t nData)
void calc (const UtlString &data)
unsigned long getValue () const

Protected Attributes

unsigned long mCrc

Detailed Description

Utility class for generating CRC-32s

Constructor & Destructor Documentation

UtlCrc32 ( )

Default no-argument constructor

Member Function Documentation

void reset ( void  )

Reset the Crc32 value

void calc ( unsigned char  ch)

Adds a single byte to the checksum

void calc ( unsigned char *  pData,
size_t  nData 

Adds a sequence of bytes to the checksum

void calc ( const UtlString data)

Adds a sequence of bytes contained within a UtlString to the checksum

unsigned long getValue ( ) const

Get the current CRC-32 value

Member Data Documentation

unsigned long mCrc