pub fn crc64(data: &[u8]) -> u64
Expand description
The C implementation is based on linux’s crc64 implementation.
Arguments
data
- A slice of bytes representing the data to calculate the checksum for.
Returns
A u64
representing the calculated CRC64 checksum.
Example
let data = b"hello world";
let crc64_checksum = cgl_rs::utils::crc64(data);
assert_eq!(crc64_checksum, 14017174577685478301);