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)
Click to show internal directories.
Click to hide internal directories.