Documentation
¶
Overview ¶
Package chunker cuts byte streams into content-defined chunks with a FastCDC-style normalised Gear hash.
The profile is fixed so that every agent cuts identical bytes identically: minimum 16 KiB, target 64 KiB, maximum 256 KiB. The gear table entry for byte value v is the first eight bytes, big-endian, of SHA-256 of the single byte v. The masks have 17 (below the target) and 15 (above it) one bits at every third position from the top of the 64-bit fingerprint.
Index ¶
Constants ¶
View Source
const ( // MinSize is the smallest chunk cut before the end of a stream. MinSize = 16 << 10 // NormalSize is the target chunk size. NormalSize = 64 << 10 // MaxSize is the largest chunk; a cut is forced there. MaxSize = 256 << 10 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.