62 void addBlock(
const void *ptr,
unsigned long size);
75 static unsigned int compute(
const void *ptr,
unsigned long size);
79 static const unsigned int crctab[256];
static unsigned int compute(const void *ptr, unsigned long size)
compute CRC for given block of data using a temporary CRC object
unsigned int value
current CRC
unsigned int getCRC32() const
returns the current CRC as unsigned int
void addBlock(const void *ptr, unsigned long size)
add block of raw data to CRC
void reset()
reset object to initial state (zero CRC)
static const unsigned int crctab[256]
CRC look-up table.
general-purpose 32-bit CRC algorithm.