Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultMinChunkSize is the default minimum chunk size. DefaultMinChunkSize = 2 << 10 // 2 KiB // DefaultMaxChunkSize is the default maximum chunk size. DefaultMaxChunkSize = 64 << 10 // 64 KiB // DefaultNormalChunkSize is the default normal chunk size. DefaultNormalChunkSize = 2<<10 + (8 << 10) // 10 KiB )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunker ¶
type Chunker struct {
// contains filtered or unexported fields
}
Chunker is an implementation of the UltraCDC algorithm.
func NewChunkerWithOptions ¶
func NewChunkerWithOptions(reader io.Reader, options *ChunkerOptions) *Chunker
NewChunker creates a new chunker with options.
type ChunkerOptions ¶
ChunkerOptions contains options for a chunker.
Click to show internal directories.
Click to hide internal directories.