package crc64
Import Path
github.com/hamba/avro/v2/pkg/crc64 (on go.dev)
Dependency Relation
imports one package, and imported by one package
Involved Source Files
Package crc64 implements the Avro CRC-64 checksum.
See https://avro.apache.org/docs/current/spec.html#schema_fingerprints for information.
Package-Level Type Names (total 2)
ByteOrder denotes how integers are encoded into bytes. The ByteOrder
interface in encoding/binary cancels some optimizations, so use a more
direct implementation.
func NewWithByteOrder(byteOrder ByteOrder) hash.Hash64
func SumWithByteOrder(data []byte, byteOrder ByteOrder) [8]byte
const BigEndian
const LittleEndian
Table is a 256-word table representing the polynomial for efficient processing.
Package-Level Functions (total 4)
New creates a new hash.Hash64 computing the Avro CRC-64 checksum.
Its Sum method will lay the value out in big-endian byte order.
NewWithByteOrder creates a new hash.Hash64 computing the Avro CRC-64
checksum. Its Sum method will lay the value out in specified byte order.
Sum returns the CRC64 checksum of the data, in big-endian byte order.
SumWithByteOrder returns the CRC64 checksum of the data, in specified byte
order.
Package-Level Constants (total 4)
ByteOrder constants.
Empty is the empty checksum.
ByteOrder constants.
Size is the of a CRC-64 checksum in bytes.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |