crc64

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package crc64 provides a mockable wrapper for hash/crc64.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Checksum

func (*Impl) Checksum(data []byte, tab *crc64.Table) uint64

func (*Impl) MakeTable

func (*Impl) MakeTable(poly uint64) *crc64.Table

func (*Impl) New

func (*Impl) New(tab *crc64.Table) hash.Hash64

func (*Impl) Update

func (*Impl) Update(crc uint64, tab *crc64.Table, p []byte) uint64

type Interface

type Interface interface {
	Checksum(data []byte, tab *crc64.Table) uint64
	MakeTable(poly uint64) *crc64.Table
	New(tab *crc64.Table) hash.Hash64
	Update(crc uint64, tab *crc64.Table, p []byte) uint64
}

Jump to

Keyboard shortcuts

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