Package-level declarations

Types

Link copied to clipboard

Adler32 checksum algorithm.

Link copied to clipboard

CRC32 checksum algorithm.

Link copied to clipboard
interface SimpleChecksum

Represents a 32-bit checksum interface, for checksums like CRC32 or Adler32

Link copied to clipboard

Mutable checksum updater for SimpleChecksum, with a provided checksum

Functions

Link copied to clipboard

Computes the checksum of this ByteArray.

Link copied to clipboard
fun SimpleChecksum.compute(data: ByteArray, offset: Int = 0, len: Int = data.size - offset): Int

Computes the checksum of the data determined in the range offset and len.

Link copied to clipboard
inline fun SimpleChecksum.computeWithRead(initial: Int = this.initialValue, read: (buffer: ByteArray) -> Int): Int

Utility to perform a checksum by small chunks of data provided by the read function.

Link copied to clipboard