Function ogg_magic::crc::vorbis_crc32

source ·
pub fn vorbis_crc32(array: &[u8], initial: u32, from: usize, to: usize) -> u32
Expand description

Computes the CRC-32 checksum for a slice of bytes using the Vorbis CRC-32 algorithm.

§Arguments

  • array - A slice of bytes for which to compute the checksum.
  • initial - The initial CRC value.
  • from - The starting index of the slice to compute the checksum.
  • to - The ending index of the slice to compute the checksum (exclusive).

§Returns

A 32-bit unsigned integer representing the CRC-32 checksum.