Documentation ¶
Overview ¶
Package buz implements hashing by cyclic polynomial (buzhash).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hash32 ¶
type Hash32 struct {
// contains filtered or unexported fields
}
A Hash32 is a rolling 32-bit buzhash.
func (*Hash32) WindowSize ¶
func (*Hash32) WriteInitial ¶
type Tabular32 ¶
type Tabular32 struct {
// contains filtered or unexported fields
}
A Tabular32 computes a buzhash on top of a tabular hash.
In this hash, each incoming byte is first mapped to a 32-bit value by a lookup table (tabular hash), then the buzhash is computed from those 32-bit values.
func NewTabular32 ¶
NewTabular32 constructs a Tabular32. It copies the contents of the table argument.
func (*Tabular32) WindowSize ¶
func (*Tabular32) WriteInitial ¶
Click to show internal directories.
Click to hide internal directories.