crc32

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 crc32 provides a mockable wrapper for hash/crc32.

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 *crc32.Table) uint32

func (*Impl) ChecksumIEEE

func (*Impl) ChecksumIEEE(data []byte) uint32

func (*Impl) MakeTable

func (*Impl) MakeTable(poly uint32) *crc32.Table

func (*Impl) New

func (*Impl) New(tab *crc32.Table) hash.Hash32

func (*Impl) NewIEEE

func (*Impl) NewIEEE() hash.Hash32

func (*Impl) Update

func (*Impl) Update(crc uint32, tab *crc32.Table, p []byte) uint32

type Interface

type Interface interface {
	Checksum(data []byte, tab *crc32.Table) uint32
	ChecksumIEEE(data []byte) uint32
	MakeTable(poly uint32) *crc32.Table
	New(tab *crc32.Table) hash.Hash32
	NewIEEE() hash.Hash32
	Update(crc uint32, tab *crc32.Table, p []byte) uint32
}

Jump to

Keyboard shortcuts

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