crc64

package
v2.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package crc64 implements the Avro CRC-64 checksum. See https://avro.apache.org/docs/current/spec.html#schema_fingerprints for information.

Index

Constants

View Source
const Empty = 0xc15d213aa4d7a795

Empty is the empty checksum.

View Source
const Size = 8

Size is the of a CRC-64 checksum in bytes.

Variables

This section is empty.

Functions

func New

func New() hash.Hash64

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.

Types

type Table

type Table [256]uint64

Table is a 256-word table representing the polynomial for efficient processing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL