Public Member Functions | |
| OFCRC32 () | |
| constructor | |
| ~OFCRC32 () | |
| destructor | |
| void | reset () |
| reset object to initial state (zero CRC) | |
| void | addBlock (const void *ptr, unsigned long size) |
| add block of raw data to CRC | |
| unsigned int | getCRC32 () const |
| returns the current CRC as unsigned int | |
Static Public Member Functions | |
| static unsigned int | compute (const void *ptr, unsigned long size) |
| compute CRC for given block of data using a temporary CRC object | |
Private Attributes | |
| unsigned int | value |
| current CRC | |
Static Private Attributes | |
| static const unsigned int | crctab [256] |
| CRC look-up table. | |
Definition at line 41 of file ofcrc32.h.
|
||||||||||||
|
add block of raw data to CRC
|
|
||||||||||||
|
compute CRC for given block of data using a temporary CRC object
|