Public Types | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes

UT_CRC32 Class Reference

CRC Checksum Calculation. More...

#include <ut_crc32.h>

List of all members.

Public Types

enum  { DIGESTSIZE = 4 }

Public Member Functions

 UT_CRC32 ()
void Fill (const char *input)
void Fill (const char *input, UT_uint32 length)
void Fill (const unsigned char *input, UT_uint32 length)
UT_uint32 DigestSize () const
void UpdateByte (unsigned char b)
unsigned char GetCrcByte (UT_uint32 i) const
UT_uint32 GetCRC32 (void) const

Private Member Functions

void Reset ()

Private Attributes

UT_uint32 m_crc

Static Private Attributes

static const UT_uint32 m_tab [256]

Detailed Description

CRC Checksum Calculation.

Member Enumeration Documentation

anonymous enum

Constructor & Destructor Documentation

UT_CRC32::UT_CRC32 (  ) 

References Reset().

Member Function Documentation

UT_uint32 UT_CRC32::DigestSize (  )  const [inline]
void UT_CRC32::Fill ( const char *  s  ) 

Fill the class with a string.

Referenced by Fill().

void UT_CRC32::Fill ( const char *  input,
UT_uint32  length 

References Fill().

void UT_CRC32::Fill ( const unsigned char *  input,
UT_uint32  length 

References CRC32_INDEX, CRC32_SHIFTED, m_crc, and m_tab.

UT_uint32 UT_CRC32::GetCRC32 ( void   )  const [inline]
unsigned char UT_CRC32::GetCrcByte ( UT_uint32  i  )  const [inline]
void UT_CRC32::Reset (  )  [inline, private]

References CRC32_NEGL.

Referenced by UT_CRC32().

void UT_CRC32::UpdateByte ( unsigned char  b  )  [inline]

References CRC32_INDEX, and CRC32_SHIFTED.

Member Data Documentation

Referenced by Fill().

const UT_uint32 UT_CRC32::m_tab [static, private]

Referenced by Fill().

The documentation for this class was generated from the following files: