Versions in this module Expand all Collapse all v0 v0.1.0 Jan 24, 2026 Changes in this version + type ChunkHandler = func([]byte) error + type Chunker interface + Buffered func() int + Flush func() error + Write func(p []byte) (int, error) + type ContentDefined struct + func NewContentDefined(minSize, avgSize, maxSize int, key *[32]byte, onChunk func(data []byte) error) *ContentDefined + func (c *ContentDefined) Buffered() int + func (c *ContentDefined) Flush() error + func (c *ContentDefined) MaxSize() int + func (c *ContentDefined) MeanSize() int + func (c *ContentDefined) MinSize() int + func (c *ContentDefined) ReadFrom(r io.Reader) (int64, error) + func (c *ContentDefined) Reset() + func (c *ContentDefined) Write(data []byte) (int, error) + func (c *ContentDefined) WriteByte(b byte) error + type Exponential struct + func NewExponential(minSize, maxSize, period int, fn ChunkHandler) *Exponential + func (e *Exponential) Buffered() int + func (e *Exponential) Flush() error + func (e *Exponential) Reset() + func (e *Exponential) Write(data []byte) (int, error)