byCDChunk

Constructs a new Chunker based on polynomial pol that reads from source.

Parameters

source R

An input range of chunks of bytes, such as that returned by File.byChunk or ubyte[].chunks or simply ubyte[].only.

pol Pol

An irreducible polynomial from F_2[X]. Use Pol.getRandom() to generate a random one.

cbuf ubyte[]

A buffer to store chunk data. When null (default), a new buffer is allocated on construction of length maxSize.

Return Value

Type: Chunker!R

An instance of Chunker, an input range of Chunker.Chunk, which contains the chunk data, and the fingerprint value when it was cut.

Meta