crc64
少于1分钟
crc64
https://pkg.go.dev/hash/crc64@go1.20.1
Package crc64 implements the 64-bit cyclic redundancy check, or CRC-64, checksum. See https://en.wikipedia.org/wiki/Cyclic_redundancy_check for information.
常量
| |
Predefined polynomials.
| |
The size of a CRC-64 checksum in bytes.
变量
This section is empty.
函数
func Checksum
| |
Checksum returns the CRC-64 checksum of data using the polynomial represented by the Table.
func New
| |
New creates a new hash.Hash64 computing the CRC-64 checksum using the polynomial represented by the Table. Its Sum method will lay the value out in big-endian byte order. The returned Hash64 also implements encoding.BinaryMarshaler and encoding.BinaryUnmarshaler to marshal and unmarshal the internal state of the hash.
func Update
| |
Update returns the result of adding the bytes in p to the crc.
类型
type Table
| |
Table is a 256-word table representing the polynomial for efficient processing.
func MakeTable
| |
MakeTable returns a Table constructed from the specified polynomial. The contents of this Table must not be modified.