crc - 32-bit Cyclic Redundancy Check
Module Description
The crc module implements a 32-bit cyclic redundancy check calculation.
Module Words
CRC-32 Structure
crc%
( - n )
Get the required space for the crc structure
CRC-32 Structure creation, initialisation and destruction
crc-init
( w:crc - )
Initialise the crc structure
crc-create
( C: "name" - R: - w )
Create a named crc in the dictionary
crc-new
( - w:crc )
Create a new crc on the heap
crc-free
( w:crc - )
Free a crc from the heap
Member words
crc-poly!
( u:poly w:crc - )
Set the polynomial for the crc structure
crc-poly@
( w:crc - u:poly )
Get the polynomial in the crc
CRC-32 words
crc-reset
( w:crc - )
Reset the crc calculation
crc-update
( c-addr u w:crc - )
Update the crc structure with more byte data
crc-finish
( w:crc - w:crc32 )
Finish the calculation for the CRC32
Module words
crc+calc-poly
( u1 .. un n - u )
Calculate the polynomial
crc+calc-crc32
( c-addr u - u:crc32 )
Calculate directly the CRC32 for byte data with default crc32 table
generated 09-Jan-2007 by
ofcfrth-0.2.0