Crc32

class Crc32 : Checksum

CRC-32 (IEEE 802.3 / zlib / gzip / PNG): reflected polynomial 0xEDB88320, init 0xFFFFFFFF, final XOR 0xFFFFFFFF. Matches zlib's crc32().

Check value: CRC32("123456789") == 0xCBF43926.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun reset()

Reset to the initial state so the instance can be reused.

Link copied to clipboard
open override fun update(data: ByteArray, offset: Int = 0, length: Int = data.size)

Feed a slice of bytes into the running checksum.

Link copied to clipboard
open override fun value(): Long

Current checksum value (low bits of the Long).