Expand description
§Example
use adler32fast::Adler32;
let mut adler32 = Adler32::new();
adler32.update(b"foo bar baz");
let checksum = adler32.as_u32();
§Performance
This crate contains multiple Adler-32 implementations:
- A fast baseline implementation which processes up to 16 bytes per iteration
- An optimized implementation for modern
x86
/x86_64
using SSE instructions
Calling the Adler32::new
/Adler32::from
constructors at runtime will perform a feature
detection to select the most optimal implementation for the current CPU feature set.
Structs§
- Adler32
- Represents an in-progress Adler-32 computation.