class

Compress::Snappy::CRC32C

Inherits Reference / Object

A pure Crystal implementation of the CRC32 checksum that uses the CRC32-C Castagnoli polynomial, the same polynomial used by iSCSI and implemented on many Intel chipsets supporting SSE4.2.

Constructors

Class methods

mask(crc)

returns a masked representation of crc.

Source
masked_crc32c(data : Slice, length : Int32)
Source
masked_crc32c(data : Slice)
Source
unmask(masked_crc)

return the crc whose masked representation is masked crc

Source

Instance methods

masked_value
Source
reset
Source
update(data : Slice, crc : UInt32)
Source
update(b : Slice, len : Int32)
Source
update(b : Slice)
Source
update(b : UInt32)
Source