Function simd_adler32::read::adler32

source ·
pub fn adler32<R: Read>(reader: &mut R) -> Result<u32>
Expand description

Compute Adler-32 hash on reader until EOF.

§Example

use std::io::Cursor;
use simd_adler32::read::adler32;

let mut reader = Cursor::new(b"Hello there");
let hash = adler32(&mut reader).unwrap();

println!("{}", hash) // 800813569