Adler32

Adler-32 (RFC 1950): the zlib-stream trailer checksum. Two 16-bit rolling sums modulo 65521, combined as (b shl 16) or a. Faster but weaker than CRC-32.

Check value: ADLER32("123456789") == 0x091E01DE.

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).