Golang implementation of the 16-bit cyclic redundancy check
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE.txt
README.md
crc16.go
crc16_test.go

README.md

crc16 GoDoc

Package crc16 implements the 16-bit Cyclic Redundancy Check

Download:

go get github.com/npat-efault/crc16

Package crc16 is a Golang implementation of the 16-bit Cyclic Redundancy Check, or CRC-16 checksum.

The package's API is almost identical to the standard-library's hash/crc32 and hash/crc64 packages.

Package crc16 supports CRC calculation in all possible configurations: Polynomial, bit-order, byte-order, initial value, and final value can all be selected. Predefined configurations are supplied for the most common uses (e.g. PPP, X25, Modbus, etc).

(See also)