Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultMaxSize = 0
View Source
const DefaultMinSize = 0
View Source
const DefaultMinimumSize = (DefaultSlices + 2) * DefaultSliceSize
View Source
const DefaultSliceSize = 8 * 1024
View Source
const DefaultSlices = 4
View Source
const DefaultThreshold = 100 * 1024
View Source
const MaxReadBytes = 1024
View Source
const MaxSlices = 128
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slicer ¶
type Slicer struct {
// contains filtered or unexported fields
}
func New ¶
func New(algorithm algorithms.Algorithm) Slicer
func NewConfigured ¶
func NewConfigured(algorithm algorithms.Algorithm, slices int, size, threshold uint64) Slicer
func (*Slicer) Slice ¶
func (slicer *Slicer) Slice(sr *io.SectionReader, options *Options, stats *SlicerStats) error
Click to show internal directories.
Click to hide internal directories.