Function crc32c_hw::update [] [src]

pub fn update<T>(crc: u32, buf: T) -> u32 where
    T: AsRef<[u8]>, 

Computes the CRC32C for the data, starting with a previous CRC32C value.

Example

extern crate crc32c_hw;

let mut crc = 0;
crc = crc32c_hw::update(crc, b"123");
crc = crc32c_hw::update(crc, b"456");
crc = crc32c_hw::update(crc, b"789");
assert_eq!(crc, 0xe3069283);