CRC-32 utility functions. More...
Macros | |
#define | SPDK_CRC32_SIZE_BYTES 4 |
Functions | |
uint32_t | spdk_crc32_ieee_update (const void *buf, size_t len, uint32_t crc) |
Calculate a partial CRC-32 IEEE checksum. | |
uint32_t | spdk_crc32c_update (const void *buf, size_t len, uint32_t crc) |
Calculate a partial CRC-32C checksum. | |
uint32_t | spdk_crc32c_iov_update (struct iovec *iov, int iovcnt, uint32_t crc32c) |
Calculate a partial CRC-32C checksum. | |
uint32_t | spdk_crc32c_nvme (const void *buf, size_t len, uint32_t crc) |
Calculate a CRC-32C checksum, for NVMe Protection Information. | |
CRC-32 utility functions.
uint32_t spdk_crc32_ieee_update | ( | const void * | buf, |
size_t | len, | ||
uint32_t | crc ) |
Calculate a partial CRC-32 IEEE checksum.
buf | Data buffer to checksum. |
len | Length of buf in bytes. |
crc | Previous CRC-32 value. |
uint32_t spdk_crc32c_iov_update | ( | struct iovec * | iov, |
int | iovcnt, | ||
uint32_t | crc32c ) |
Calculate a partial CRC-32C checksum.
iov | Data buffer vectors to checksum. |
iovcnt | size of iov parameter. |
crc32c | Previous CRC-32C value. |
uint32_t spdk_crc32c_nvme | ( | const void * | buf, |
size_t | len, | ||
uint32_t | crc ) |
Calculate a CRC-32C checksum, for NVMe Protection Information.
buf | Data buffer to checksum. |
len | Length of buf in bytes. |
crc | Previous CRC-32C value. |
uint32_t spdk_crc32c_update | ( | const void * | buf, |
size_t | len, | ||
uint32_t | crc ) |
Calculate a partial CRC-32C checksum.
buf | Data buffer to checksum. |
len | Length of buf in bytes. |
crc | Previous CRC-32C value. |