class Compress::Snappy::CRC32C

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:

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

Class Method Detail

def self.mask(crc) #

returns a masked representation of crc.


def self.masked_crc32c(data : Slice, length : Int32) #

def self.masked_crc32c(data : Slice) #

def self.unmask(masked_crc) #

return the crc whose masked representation is masked crc


Instance Method Detail

def masked_value #

def reset #

def update(data : Slice, crc : UInt32) #

def update(b : Slice, len : Int32) #

def update(b : Slice) #

def update(b : UInt32) #