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:

snappy/crc32c.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.mask(crc) #

returns a masked representation of crc.


[View source]
def self.masked_crc32c(data : Slice, length : Int32) #

[View source]
def self.masked_crc32c(data : Slice) #

[View source]
def self.unmask(masked_crc) #

return the crc whose masked representation is masked crc


[View source]

Instance Method Detail

def masked_value #

[View source]
def reset #

[View source]
def update(data : Slice, crc : UInt32) #

[View source]
def update(b : Slice, len : Int32) #

[View source]
def update(b : Slice) #

[View source]
def update(b : UInt32) #

[View source]