Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CDCChunker ¶
type CDCChunker struct {
// contains filtered or unexported fields
}
CDCChunker implements FastCDC algorithm.
func NewCDCChunker ¶
func NewCDCChunker(minSize, avgSize, maxSize uint32) (*CDCChunker, error)
NewCDCChunker returns a new CDCChunker.
type Chunk ¶
type Chunk struct {
Hash string // BLAKE3 hash of chunk content
Offset int64 // Offset in original stream
Size uint32 // Chunk size in bytes
CompressedSize uint32 // Compressed chunk size in bytes
Data []byte // Chunk data
// contains filtered or unexported fields
}
Chunk represents a single content-defined chunk.
Click to show internal directories.
Click to hide internal directories.