1 2 3 4 5 6 7 8 9 10 11
//! CRC32C helpers used by headers, superblocks, and segment payloads. pub const CHECKSUM_KIND_CRC32C: u8 = 0; pub fn crc32c(bytes: &[u8]) -> u32 { crc32c::crc32c(bytes) } pub fn crc32c_append(crc: u32, bytes: &[u8]) -> u32 { crc32c::crc32c_append(crc, bytes) }