Documentation
¶
Overview ¶
package chunk implements streaming block splitters
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSplitter = &SizeSplitter{Size: 1024 * 256}
Functions ¶
This section is empty.
Types ¶
type BlockSplitter ¶
type BlockSplitter interface {
Split(r io.Reader) chan []byte
}
type MaybeRabin ¶
type MaybeRabin struct {
MinBlockSize int
MaxBlockSize int
// contains filtered or unexported fields
}
func NewMaybeRabin ¶
func NewMaybeRabin(avgBlkSize int) *MaybeRabin
type SizeSplitter ¶
type SizeSplitter struct {
Size int
}
Click to show internal directories.
Click to hide internal directories.