Documentation
¶
Overview ¶
Package crc16 computes the 16 bit checksum over a series of bytes.
Index ¶
Constants ¶
View Source
const (
// ANSI is the polynomial x16+x15+x2+1.
ANSI = 0xA001
)
Predefined polynomials.
View Source
const Size = 2
Size of a CRC-16 checksum in bytes.
Variables ¶
View Source
var ANSITable = makeTable(ANSI)
ANSITable is the table for the ANSI polynomial.
Functions ¶
func ChecksumANSI ¶
ChecksumANSI returns the checksum of data using the CRC16-ANSI polynomial.
Types ¶
Click to show internal directories.
Click to hide internal directories.