class CRC::CRC1

Overview

Implements the CRC1 algorithm.

Defined in:

crc/crc1.cr

Constructors

Instance Method Summary

Instance methods inherited from class CRC::Base(UInt32)

<<(data) <<, checksum : UINT checksum, digest_size : Int32 digest_size, final_impl(dst : Bytes) : Nil final_impl, reset_impl : Nil reset_impl, update_impl(data : Bytes) : Nil update_impl

Constructor methods inherited from class CRC::Base(UInt32)

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

Class methods inherited from class CRC::Base(UInt32)

checksum(data) : UINT checksum, init_crc : UINT init_crc, xor_mask : UINT xor_mask

Constructor Detail

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

Initializes the CRC instance.


[View source]

Instance Method Detail

def digest_size #
Description copied from class CRC::Base(UInt32)

The size of the resulting CRC checksum.


[View source]
def final_impl(dst : Bytes) : Nil #

The packed CRC value.


[View source]
def update_impl(data : Bytes) : Nil #

Updates the CRC1 checksum.


[View source]