Expand description
§Example
use crc32fast::Hasher;
let mut hasher = Hasher::new();
hasher.update(b"foo bar baz");
let checksum = hasher.finalize();
§Performance
This crate contains multiple CRC32 implementations:
- A fast baseline implementation which processes up to 16 bytes per iteration
- An optimized implementation for modern
x86
usingsse
andpclmulqdq
instructions
Calling the Hasher::new
constructor at runtime will perform a feature detection to select the most
optimal implementation for the current CPU feature set.
Structs§
- Represents an in-progress CRC32 computation.