Checksum

interface Checksum

An interface representing a data checksum.

Inheritors

Functions

Link copied to clipboard
abstract fun getValue(): Long

Returns the current checksum value.

Link copied to clipboard
abstract fun reset()

Resets the checksum to its initial value.

Link copied to clipboard
open fun update(b: ByteArray)

Updates the current checksum with the specified array of bytes.

abstract fun update(b: Int)

Updates the current checksum with the specified byte.

open fun update(buffer: Buffer)

Updates the current checksum with the bytes from the specified buffer.

open fun update(byteBuffer: ByteBuffer)

abstract fun update(b: ByteArray, off: Int, len: Int)

Updates the current checksum with a portion of an array of bytes.