OggCrc

open class OggCrc

Calculates the CRC checksum for Ogg packets.

Ogg uses the same generator polynomial as ethernet, although with an unreflected alg and an init/final of 0, not 0xffffffff.

Author

Jim Lawrence, helloNetwork.com

Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)

Functions

Link copied to clipboard
open fun checksum(    crc: Int,     data: Array<Byte>,     offset: Int,     length: Int): Int
Calculates the checksum on the given data, from the give offset and for the given length, using the given initial value.