Skip to main content

digest_bytes

Function digest_bytes 

Source
pub fn digest_bytes(bytes: &[u8]) -> ContentDigest
Expand description

What: The digest of in-memory bytes. Why: Tests pin the published FNV-1a vectors through it, and the file reader below must agree with it.

In TS you’d write (pseudocode):

const digest = digestBytes(bytes);