Skip to main content

multi_hash_program

Function multi_hash_program 

Source
pub fn multi_hash_program(input: &str, out: &str, n: u32) -> Program
Expand description

Build a Program that computes CRC-32, FNV-1a32, and Adler-32 over input[0..n] in a single walk.

input[i] packs one byte per u32 slot. The three results are packed into one output buffer: out[0] = crc32, out[1] = fnv1a32, out[2] = adler32.