//
pkg.gl
Category
github.com/windzhu0514/go-utils
hash
crc16
package
0.0.0-20240821054911-366547e8a2d4
Repository:
https://github.com/windzhu0514/go-utils.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
3
Dependents
0
Files
65 SLOC
#
README
CRC(循环冗余校验)在线计算
crccalc.com
#
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.