Crate bitcoinleveldb_crc32

Source

Constants§

BYTE_EXTENSION_TABLE
CRC32XOR
| CRCs are pre- and post- conditioned | by xoring with all ones. |
MASK_DELTA
STRIDE_EXTENSION_TABLE0
STRIDE_EXTENSION_TABLE1
STRIDE_EXTENSION_TABLE2
STRIDE_EXTENSION_TABLE3

Functions§

crc32c_can_accelerate
| Determine if the CPU running this program | can accelerate the CRC32C calculation. |
crc32c_extend
| Return the crc32c of concat(A, data[0,n-1]) | where init_crc is the crc32c of some string A. | Extend() is often used to maintain the crc32c | of a stream of data.
crc32c_mask
| Return a masked representation of crc. | | Motivation: it is problematic to compute the | CRC of a string that contains embedded CRCs. | Therefore we recommend that CRCs stored | somewhere (e.g., in files) should be masked | before being stored.
crc32c_read_uint32le
| Reads a little-endian 32-bit integer | from a 32-bit-aligned buffer. |
crc32c_round_up
| Returns the smallest address >= the given | address that is aligned to N bytes. | | N must be a power of two.
crc32c_unmask
| Return the crc whose masked representation | is masked_crc. |
crc32c_value
| Return the crc32c of data[0,n-1] |