package
0.0.0-20170403140351-21d4febd4bca
Repository: https://github.com/sirbu/golang-common.git
Documentation: pkg.go.dev
# Functions
Checksum returns the CRC-16 checksum of data using the configuration c.
MakeTable returns the Table constructed from the specified polynomial.
MakeTableNBR returns the Table constructed from the specified polynomial.
New creates a new hash.Hash16 computing the CRC-16 checksum using the configuration c.
Update returns the CRC-16 checksum of p using the polynomial table tab constructed by MakeTable (bit-reversed order).
UpdateNBR returns the CRC-16 checksum of p using the polynomial table tab constructed by MakeTableNBR (non-bit-reversed order).
# Constants
The size of a CRC-16 checksum in bytes.
# Interfaces
Hash16 is the common interface implemented by all 16-bit hash functions.
# Type aliases
Table is a 256-word table representing the polynomial for efficient processing.