MixedRadixCoder.Encoder

This encoding system is LIFO, so the encoder buffers all items until .finish is called.

template MixedRadixCoder(I, E, bool withEOF = false)
struct Encoder (
size_t maxItems
) {}

Members

Functions

finish
E finish()

Finish encoding and return the encoded result.

put
void put(I n, I card)

Encode one item. card is the item's cardinality, i.e. one past its maximum.

Meta