pub fn checksum(algorithm: CrcAlgorithm, buf: &[u8]) -> u64Expand description
Computes the CRC checksum for the given data using the specified algorithm.
use crc_fast::{checksum, CrcAlgorithm::Crc32IsoHdlc};
let checksum = checksum(Crc32IsoHdlc, b"123456789");
assert_eq!(checksum, 0xcbf43926);