checksum

package
v0.15.17-hotfix.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 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