crc32_bytes_offset

Function crc32_bytes_offset 

Source
pub fn crc32_bytes_offset(array: &[u8], offset: usize, length: usize) -> u32
Expand description

Calculate CRC32 checksum for a range of bytes.

§Arguments

  • array - The byte array
  • offset - Starting offset
  • length - Number of bytes to process

§Returns

CRC32 checksum as u32 (masked with 0x7FFFFFFF), or 0 if invalid range