Expand description
A const fn crc32 checksum implementation.
§Examples
const BYTES: &[u8] = "The quick brown fox jumps over the lazy dog".as_bytes();
const CKSUM: u32 = const_crc32::crc32(BYTES);
assert_eq!(CKSUM, 0x414fa339_u32);Functions§
- crc32
- A
const fncrc32 checksum implementation. - crc32_
seed - Calculate crc32 checksum, using provided
seedas the initial state, instead of the default initial state of0u32.