class Compress::Snappy::CRC32C
- Compress::Snappy::CRC32C
- Reference
- Object
Overview
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.
Defined in:
snappy/crc32c.crConstructors
Class Method Summary
-
.mask(crc)
returns a masked representation of crc.
- .masked_crc32c(data : Slice, length : Int32)
- .masked_crc32c(data : Slice)
-
.unmask(masked_crc)
return the crc whose masked representation is masked crc
Instance Method Summary
- #masked_value
- #reset
- #update(data : Slice, crc : UInt32)
- #update(b : Slice, len : Int32)
- #update(b : Slice)
- #update(b : UInt32)