Class a.crc64
64-bit Cyclic Redundancy Check
a.crc64 |
64-bit Cyclic Redundancy Check |
-
a.crc64
-
64-bit Cyclic Redundancy Check
Fields:
- table
Cyclic Redundancy Check comparison table
-
a.crc64:new (poly, reversed)
-
constructor for 64-bit Cyclic Redundancy Check
Parameters:
- poly
integer
polynomial that is CRC's divisor
- reversed
boolean
whether or not to reverse
Returns:
a.crc64
64-bit Cyclic Redundancy Check userdata
-
a.crc64:gen (poly, reversed)
-
generate for 64-bit Cyclic Redundancy Check
Parameters:
- poly
integer
polynomial that is CRC's divisor
- reversed
boolean
whether or not to reverse
Returns:
a.crc64
64-bit Cyclic Redundancy Check userdata
-
a.crc64:eval (block, value)
-
calculate for 64-bit Cyclic Redundancy Check
Parameters:
- block
string
block to be processed
- value
integer
initial value
Returns:
integer
output value
-
a.crc64:pack (block, value)
-
pack a block and its 64-bit Cyclic Redundancy Check value
Parameters:
- block
string
block to be processed
- value
integer
initial value
Returns:
string
packed block