Crc32c

CRC-32C (Castagnoli): reflected polynomial 0x82F63B78, init 0xFFFFFFFF, final XOR 0xFFFFFFFF. Used by btrfs/ext4/iSCSI/SCTP and as an optional 7z check (NOT by ZIP, which uses Crc32).

Check value: CRC32C("123456789") == 0xE3069283.

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