Chunker

Splits content with Rabin Fingerprints.

Constructors

this
this(R source, Pol pol, uint averageBits, size_t minSize, size_t maxSize, ubyte[] cbuf)

Probably use the byCDChunk convenience function instead of this constructor directly. Note that Chunker will popFront the input range during construction.

Members

Functions

popFront
void popFront()

Updates front to contain the position and data of the next chunk. Note that Chunker reuses the chunk buffer, so the previous contents of front.data will be overwritten.

Structs

Chunk
struct Chunk

One content-dependent chunk of bytes whose end was cut when the Rabin Fingerprint had the value stored in cut.

Variables

empty
bool empty;

Undocumented in source.

front
Chunk front;

Undocumented in source.

Meta