BufferedChecksum
class BufferedChecksum @JvmOverloads constructor(in: Checksum, bufferSize: Int = DEFAULT_BUFFERSIZE) : Checksum
Wraps another Checksum with an internal buffer to speed up checksum calculations.
Functions
Link copied to clipboard
Updates the current checksum with the specified array of bytes.
Updates the current checksum with the bytes from the specified buffer.
Create a new BufferedChecksum with the specified bufferSize
Updates the current checksum with a portion of an array of bytes.
Link copied to clipboard
Writes value as a little‑endian long into the internal buffer. Flushes if there isn’t enough room.
Link copied to clipboard
Link copied to clipboard
Writes value as a little-endian short into buffer at the current offset.