Formatter that (de)serializes a monotonically increasing sequence as differences.
Declared in <blockencodings.h>
class DifferenceFormatter;
Successive values are encoded as the gap from the previous value, so a sorted list of indexes stays compact on the wire.
| Name | Description |
|---|---|
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. |