Versions in this module Expand all Collapse all v0 v0.0.6 Sep 23, 2021 Changes in this version + const ChunkSizeLimit + const DefaultBlockSize + var ErrRabinMin = errors.New("rabin min must be greater than 16") + var ErrSize = errors.New("chunker size must be greater than 0") + var ErrSizeMax = fmt.Errorf("chunker parameters may not exceed the maximum chunk size of %d", ...) + var IpfsRabinPoly = chunker.Pol(17437180132763653) + func Chan(s Splitter) (<-chan []byte, <-chan error) + type Buzhash struct + func NewBuzhash(r io.Reader) *Buzhash + func (b *Buzhash) NextBytes() ([]byte, error) + func (b *Buzhash) Reader() io.Reader + type Rabin struct + func NewRabin(r io.Reader, avgBlkSize uint64) *Rabin + func NewRabinMinMax(r io.Reader, min, avg, max uint64) *Rabin + func (r *Rabin) NextBytes() ([]byte, error) + func (r *Rabin) Reader() io.Reader + type Splitter interface + NextBytes func() ([]byte, error) + Reader func() io.Reader + func DefaultSplitter(r io.Reader) Splitter + func FromString(r io.Reader, chunker string) (Splitter, error) + func NewSizeSplitter(r io.Reader, size int64) Splitter + type SplitterGen func(r io.Reader) Splitter + func SizeSplitterGen(size int64) SplitterGen