Versions in this module Expand all Collapse all v0 v0.2.1 Aug 19, 2026 v0.2.0 Aug 19, 2026 Changes in this version + func BitsFromAverage(average int) int type Config + Bits int v0.1.0 Aug 19, 2026 Changes in this version + const DefaultAverage + const DefaultMax + const DefaultMin + const DefaultWindow + const RollSumWindow + func Bytes(data []byte, cfg Config) [][]byte + func Cut(cfg Config) func(data []byte) [][]byte + type BuzHash struct + func NewBuzHash(window int) *BuzHash + func (b *BuzHash) Prime(in byte) + func (b *BuzHash) Primed() bool + func (b *BuzHash) Roll(in byte) + func (b *BuzHash) Sum() uint32 + type Chunker struct + func New(r io.Reader, cfg Config) *Chunker + func (c *Chunker) Next() (offset uint64, data []byte, err error) + type Config struct + Average int + Max int + Min int + Rolling func(window int) Rolling + Window int + func BuzHashConfig() Config + func RollSumConfig() Config + type RollSum struct + func NewRollSum(windowSize int) *RollSum + func (r *RollSum) Prime(b byte) + func (r *RollSum) Primed() bool + func (r *RollSum) Roll(b byte) + func (r *RollSum) Sum() uint32 + type Rolling interface + Prime func(b byte) + Primed func() bool + Roll func(b byte) + Sum func() uint32 + func NewBuzHashRolling(window int) Rolling + func NewRollSumRolling(window int) Rolling