package
0.0.0-20250331170347-98e59e8ed099
Repository: https://github.com/nbvghost/dandelion.git
Documentation: pkg.go.dev

# Functions

Checksum returns the CRC-16 checksum of data using the polynomial represented by the Table.
ChecksumCCITT returns the CRC-16 checksum of data using the CCITT polynomial.
ChecksumCCITTFalse returns the CRC-16 checksum using what some call the CCITT-False polynomial, which matches what is used by Perl Digest/CRC and Boost for example.
ChecksumIBM returns the CRC-16 checksum of data using the IBM polynomial.
ChecksumMBus returns the CRC-16 checksum of data using the MBus polynomial.
ChecksumSCSI returns the CRC-16 checksum of data using the SCSI polynomial.
MakeBitsReversedTable returns the Table constructed from the specified polynomial.
MakeTable returns the Table constructed from the specified polynomial.
MakeTableNoXOR returns the Table constructed from the specified polynomial.
Update returns the result of adding the bytes in p to the crc.

# Constants

CCITT is used by X.25, V.41, HDLC FCS, XMODEM, Bluetooth, PACTOR, SD, ..
Predefined polynomials.
IBM is used by Bisync, Modbus, USB, ANSI X3.28, SIA DC-07, ...
MBUS is used by Meter-Bus, DNP, ...
SCSI is used by SCSI.

# Variables

CCITTFalseTable is the table for CCITT-FALSE.
CCITTTable is the table for the CCITT polynomial.
IBMTable is the table for the IBM polynomial.
MBusTable is the tabe used for Meter-Bus polynomial.
SCSITable is the table for the SCSI polynomial.

# Structs

Table is a 256-word table representing the polynomial for efficient processing.