Skip to main content

Module crc

Module crc 

Source
Expand description

CRC32C checksum compute + validation.

Kafka record batches use CRC32C (Castagnoli polynomial), not CRC32. The checksum covers the bytes from attributes through the end of the batch.

Re-exports§

pub use self::error::CrcMismatch;

Modules§

error
Error types for crate::crc.

Functions§

crc32c
Compute the CRC32C checksum of bytes.
validate_crc32c
Validate that crc32c(bytes) == expected. Returns CrcMismatch otherwise.