Class a.crc32

32-bit Cyclic Redundancy Check

Tables

a.crc32 32-bit Cyclic Redundancy Check

Methods

a.crc32:new (poly, reversed) constructor for 32-bit Cyclic Redundancy Check
a.crc32:gen (poly, reversed) generate for 32-bit Cyclic Redundancy Check
a.crc32:eval (block, value) calculate for 32-bit Cyclic Redundancy Check
a.crc32:pack (block, value) pack a block and its 32-bit Cyclic Redundancy Check value


Tables

a.crc32
32-bit Cyclic Redundancy Check

Fields:

  • table Cyclic Redundancy Check comparison table

Methods

a.crc32:new (poly, reversed)
constructor for 32-bit Cyclic Redundancy Check

Parameters:

  • poly integer polynomial that is CRC's divisor
  • reversed boolean whether or not to reverse

Returns:

    a.crc32 32-bit Cyclic Redundancy Check userdata
a.crc32:gen (poly, reversed)
generate for 32-bit Cyclic Redundancy Check

Parameters:

  • poly integer polynomial that is CRC's divisor
  • reversed boolean whether or not to reverse

Returns:

    a.crc32 32-bit Cyclic Redundancy Check userdata
a.crc32:eval (block, value)
calculate for 32-bit Cyclic Redundancy Check

Parameters:

  • block string block to be processed
  • value integer initial value

Returns:

    integer output value
a.crc32:pack (block, value)
pack a block and its 32-bit Cyclic Redundancy Check value

Parameters:

  • block string block to be processed
  • value integer initial value

Returns:

    string packed block
generated by LDoc 1.5.0 Last updated 2024-05-11 16:29:31