class CRC::CRC32XFER

Overview

Implements the CRC32 XFER algorithm.

Defined in:

crc/crc32_xfer.cr

Constant Summary

TABLE = [0, 175, 350, 497, 700, 531, 994, 845, 1400, 1495, 1062, 1161, 1988, 1899, 1690, 1589, 2800, 2655, 2990, 2817, 2124, 2275, 2322, 2493, 3976, 3879, 3798, 3705, 3380, 3483, 3178, 3269, 5600, 5455, 5310, 5137, 5980, 6131, 5634, 5805, 4248, 4151, 4550, 4457, 4644, 4747, 4986, 5077, 7952, 8127, 7758, 7905, 7596, 7427, 7410, 7261, 6760, 6855, 6966, 7065, 6356, 6267, 6538, 6437, 11200, 11119, 10910, 10801, 10620, 10707, 10274, 10381, 11960, 11799, 12262, 12105, 11268, 11435, 11610, 11765, 8496, 8607, 8302, 8385, 9100, 8995, 8914, 8829, 9288, 9447, 9494, 9657, 9972, 9819, 10154, 9989, 15904, 16015, 16254, 16337, 15516, 15411, 15810, 15725, 15192, 15351, 14854, 15017, 14820, 14667, 14522, 14357, 13520, 13439, 13710, 13601, 13932, 14019, 14130, 14237, 12712, 12551, 12534, 12377, 13076, 13243, 12874, 13029, 22400, 22319, 22238, 22129, 21820, 21907, 21602, 21709, 21240, 21079, 21414, 21257, 20548, 20715, 20762, 20917, 23920, 24031, 23598, 23681, 24524, 24419, 24210, 24125, 22536, 22695, 22870, 23033, 23220, 23067, 23530, 23365, 16992, 17103, 17214, 17297, 16604, 16499, 16770, 16685, 18200, 18359, 17990, 18153, 17828, 17675, 17658, 17493, 18576, 18495, 18894, 18785, 18988, 19075, 19314, 19421, 19944, 19783, 19638, 19481, 20308, 20475, 19978, 20133, 31808, 31983, 32030, 32177, 32508, 32339, 32674, 32525, 31032, 31127, 30822, 30921, 31620, 31531, 31450, 31349, 30384, 30239, 30702, 30529, 29708, 29859, 30034, 30205, 29640, 29543, 29334, 29241, 29044, 29147, 28714, 28805, 27040, 26895, 26878, 26705, 27420, 27571, 27202, 27373, 27864, 27767, 28038, 27945, 28260, 28363, 28474, 28565, 25424, 25599, 25102, 25249, 25068, 24899, 24754, 24605, 26152, 26247, 26486, 26585, 25748, 25659, 26058, 25957] of UInt32

Generated by ./pycrc.py --algorithm=table-driven --model=xfer --generate=c

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class CRC::CRC32

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

Constructor methods inherited from class CRC::CRC32

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

Class methods inherited from class CRC::CRC32

init_crc init_crc, xor_mask xor_mask

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]

Class Method Detail

def self.init_crc : UInt32 #

[View source]
def self.xor_mask : UInt32 #

[View source]

Instance Method Detail

def update_impl(data : Bytes) : Nil #

Updates the CRC32 XFER checksum.

@param [String] data The data to update the checksum with.


[View source]