class

CRC::Base(UINT)

Inherits Digest < Reference < Object

Constructors

new(crc : UINT = self.class.init_crc)

Initializes the CRC instance.

Source

Class methods

checksum(data) : UINT

Calculates the CRC checksum.

Source
init_crc

The default initial CRC value.

Source
xor_mask

The default CRC XOR mask.

Source

Instance methods

<<(data)

@see #update

Source
checksum

The resulting CRC checksum.

Source
digest_size

The size of the resulting CRC checksum.

Source
final_impl(dst : Bytes) : Nil

Packs the final CRC result.

Source
reset_impl

Resets the CRC checksum.

Source
update_impl(data : Bytes) : Nil

Updates the CRC checksum with the given data.

Source