general-purpose 32-bit CRC algorithm.
More...
|
| 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 More...
|
|
unsigned int | getCRC32 () const |
| returns the current CRC as unsigned int
|
|
|
static unsigned int | compute (const void *ptr, unsigned long size) |
| compute CRC for given block of data using a temporary CRC object More...
|
|
|
unsigned int | value |
| current CRC
|
|
|
static const unsigned int | crctab [256] |
| CRC look-up table.
|
|
general-purpose 32-bit CRC algorithm.
void OFCRC32::addBlock |
( |
const void * |
ptr, |
|
|
unsigned long |
size |
|
) |
| |
add block of raw data to CRC
- Parameters
-
ptr | pointer to raw data |
size | length of raw data block in bytes |
static unsigned int OFCRC32::compute |
( |
const void * |
ptr, |
|
|
unsigned long |
size |
|
) |
| |
|
static |
compute CRC for given block of data using a temporary CRC object
- Parameters
-
ptr | pointer to raw data |
size | length of raw data block in bytes |
- Returns
- CRC32 as unsigned int
The documentation for this class was generated from the following file:
- ofstd/include/dcmtk/ofstd/ofcrc32.h