DifferenceFormatter

Formatter that (de)serializes a monotonically increasing sequence as differences.

Synopsis

Declared in <blockencodings.h>

class DifferenceFormatter;

Description

Successive values are encoded as the gap from the previous value, so a sorted list of indexes stays compact on the wire.

Member Functions

NameDescription
Ser Writes the next value as its difference from the previous one.
Unser Reads the next value by adding the encoded difference to the running total.