adler32checksumrs

License Issues CI Activity Version

Adler 32 checksum algorithm written for rust.

Wikipedia

How to use

Sequel

rust fn adler32_checksum_blocking(init: [u8; 8], data: Vec<u8>) -> Adler32Result { let adler = Adler32::new(init); adler.adler32_checksum(data); }

Batch

Synchronously

rust fn adler32_checksum_blocking(init: [u8; 8], data: Vec<Vec<u8>>) -> Vec<Adler32Result> { let adler = Adler32::new(init); data .iter() .map(|hash| { adler.adler32_checksum(hash); }) .collect(); }

Asynchronously

rust fn adler32_checksum_parallel(init: [u8; 8], data: Vec<Vec<u8>>) -> Vec<Adler32Result> { Adler32Builder::new(Adler32::new(init)) .push_vec(data) .finalize(); }