|
BDE 4.39.x Production Release
|
#include <bdlde_crc32c.h>
This class provides alternative implementations of utilities to calculate a CRC32-C checksum.
See bdlde_crc32c
Static Public Member Functions | |
| static unsigned int | calculateSoftware (const void *data, bsl::size_t length, unsigned int crc=Crc32c::k_NULL_CRC32C) |
| static unsigned int | calculateHardwareSerial (const void *data, bsl::size_t length, unsigned int crc=Crc32c::k_NULL_CRC32C) |
|
static |
Return the CRC32-C value calculated for the specified data over the specified length number of bytes, using the optionally specified crc value as the starting point for the calculation. This utilizes a hardware-based implementation that does not leverage instruction level parallelism to perform the calculation (hence it calculates the crc32c in "serial").
data is 0, then length must also be 0.
|
static |
Return the CRC32-C value calculated for the specified data over the specified length number of bytes, using the optionally specified crc value as the starting point for the calculation. This utilizes a portable software-based implementation to perform the calculation.
data is 0, then length must also be 0.