CRC Checksum Calculation. More...
#include <ut_crc32.h>
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] |
CRC Checksum Calculation.
UT_CRC32::UT_CRC32 | ( | ) |
References Reset().
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 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.
UT_uint32 UT_CRC32::m_crc [private] |
Referenced by Fill().
const UT_uint32 UT_CRC32::m_tab [static, private] |
Referenced by Fill().