//
pkg.gl
Category
github.com/gincoinc/go
crc16
package
0.0.0-20190507022301-b1bd2f5c3845
Repository:
https://github.com/gincoinc/go.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
0
Files
65 SLOC
#
Functions
Checksum
Checksum returns the 2-byte checksum for the provided data.
Validate
Validate returns an error if the provided checksum does not match the calculated checksum of the provided data.
#
Variables
ErrInvalidChecksum
ErrInvalidChecksum is returned when Validate determines either the checksum or the payload has been corrupted.