<brieflz.h> - blz_crc32
unsigned int blz_crc32( const void *source,
size_t length,
unsigned int initial_crc32 );
Computes the CRC32 value of length bytes of data
from source[] .
initial_crc32 is used as the starting crc value, allowing
the function to be used to checksum multiple blocks of memory as if they
were one large block. Pass zero on the first call, and the current result
on the following calls.
- Parameters:
-
source - pointer to the data to process.
length - the size in bytes of the data.
initial_crc32 - the current CRC32 value
(pass 0 for first block).
- Returns:
-
the CRC32 value.
|