class CRC::CRC16QT

Overview

Implements the CRC16_CCITT algorithm used in QT algorithms.

@author Matthew Bednarski

Defined in:

crc/crc16_qt.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class CRC::CRC16CCITT

update_impl(data : Bytes) : Nil update_impl

Constructor methods inherited from class CRC::CRC16CCITT

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

Class methods inherited from class CRC::CRC16CCITT

init_crc : UInt16 init_crc

Instance methods inherited from class CRC::CRC16

final_impl(dst : Bytes) : Nil final_impl, update_impl(data : Bytes) : Nil update_impl

Constructor methods inherited from class CRC::CRC16

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

Class methods inherited from class CRC::CRC16

init_crc : UInt16 init_crc

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

<<(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(UInt16)

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

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

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

Constructor Detail

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

Initializes the CRC16QT instance.


[View source]

Class Method Detail

def self.final_xor : UInt16 #

final XOR mask.


[View source]

Instance Method Detail

def checksum : UInt16 #

Calculates the final CRC16 QT checksum value.


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

Updates the CRC16 checksum.


[View source]