crc32

Function crc32 

Source
pub fn crc32(data: &[u8]) -> u32
Expand description

Compute the CRC32 (IEEE) of a byte slice

Typically this function is used only to compute the CRC32 of data that is held entirely in memory. When decompressing, a ZipVerifier is suitable to streaming computations.

Benchmarks showed that function should be fast enough for all uses, only losing to crc32fast at the largest payload size and even then eking out a single digit performance improvement.