checksum

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fn

func Fn(b []byte) uint32

Fn returns a checksum of the provided bytes

Types

type Accumulator

type Accumulator interface {
	// Current returns the current checksum value
	Current() uint32

	// Update updates accrued checksum using provided bytes
	Update(b []byte) uint32
}

Accumulator accrues checksums

func NewAccumulator

func NewAccumulator() Accumulator

NewAccumulator returns a new accumulator

Jump to

Keyboard shortcuts

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