Created by Scott Robert Ladd at Coyote Gulch Productions.
Calculate 32-bit CRC values from byte data. More...
#include <crccalc.h>
Classes | |
class | crc_precalc |
Public Member Functions | |
crc_calculator () | |
Constrctor. | |
void | update (const unsigned char *a_data, size_t a_length) |
Update CRC for a given data set. | |
crc32_t | get_crc32 () |
Get CRC value. |
Calculates a 32-bit CRC value using the algorithm specified by ISO 3309, and as used by the PNG graphics specification.
libcoyotl::crc_calculator::crc_calculator | ( | ) |
Constructs a new CRC value with a base value of 0xFFFFFFFF.
|
inline |
Returns the current 32-bit CRC value. This value will change with subsequent calls to update.
void libcoyotl::crc_calculator::update | ( | const unsigned char * | a_data, |
size_t | a_length | ||
) |
Updates the crc value from the bytes provided in data. Each time this function is called for a given crc_calculator, the 32-bit CRC value changes to reflect the new bytes.
a_data | - Array of bytes to be "added" to the CRC value |
a_length | - Number of bytes in the data array |
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.