Documentation ¶ Index ¶ func Checksum(init uint16, data []byte, table Table) (crc uint16) type CRC func NewCRC(name string, init, poly, residue uint16) (crc CRC) func (crc CRC) Checksum(data []byte) uint16 func (crc CRC) String() string type Table func NewTable(poly uint16) (table Table) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Checksum ¶ func Checksum(init uint16, data []byte, table Table) (crc uint16) Types ¶ type CRC ¶ type CRC struct { Name string Init uint16 Poly uint16 Residue uint16 // contains filtered or unexported fields } func NewCRC ¶ func NewCRC(name string, init, poly, residue uint16) (crc CRC) func (CRC) Checksum ¶ func (crc CRC) Checksum(data []byte) uint16 func (CRC) String ¶ func (crc CRC) String() string type Table ¶ type Table [256]uint16 func NewTable ¶ func NewTable(poly uint16) (table Table) Source Files ¶ View all Source files crc.go Click to show internal directories. Click to hide internal directories.