rollinghash

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RollingHash

type RollingHash struct {
	// contains filtered or unexported fields
}

func NewRollingHash

func NewRollingHash(shift uint16) *RollingHash

func (*RollingHash) Append

func (r *RollingHash) Append(c uint16, len uint16)

func (*RollingHash) PutSum

func (r *RollingHash) PutSum(b []byte)

Puts the sum into b. Avoids allocation. b must have length >= 4

func (*RollingHash) Reset

func (r *RollingHash) Reset()

func (*RollingHash) Update

func (r *RollingHash) Update(newC uint16, oldC uint16)

Jump to

Keyboard shortcuts

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