crc16 - Perform a 16bit Cyclic Redundancy Check
SYNOPSIS
package require Tcl 8.2
package require crc16 ?1.0?
|
This package provides a Tcl-only implementation of the CRC
algorithms based upon information provided at
http://www.microconsultants.com/tips/crc/crc.txt
There are a number of permutations available for calculating CRC
checksums and this package can handle all of them. Defaults are set up
for the most common cases.
COMMANDS
OPTIONS
EXAMPLES
% crc::crc16 "Hello, World!" 64077 |
% crc::crc-ccitt "Hello, World!" 26586 |
% crc::crc16 -format 0x%X "Hello, World!" 0xFA4D |
% crc::crc16 -file crc16.tcl 51675 |