Function simd_adler32::adler32

source ·
pub fn adler32<H: Adler32Hash>(hash: &H) -> u32
Expand description

Compute Adler-32 hash on Adler32Hash type.

§Arguments

  • hash - A Adler-32 hash-able type.

§Examples

use simd_adler32::adler32;

let hash = adler32(b"Adler-32");
println!("{}", hash); // 800813569