Index Compressor
This interface defines the abstract protocol for compressing a sequence of integers used by the Serializer and Deserializer.
Functions
Link copied to clipboard
Given an index to serialize, or one that was reconstructed during deserialization, update this compressor to take this index into account, and answer an encoding that the deserializer will be able to use to get back to the original index, given a compressor in the same state.
Link copied to clipboard
The current index number, which is one more than the last value returned by incrementIndex.
Link copied to clipboard
Link copied to clipboard
Advance the current index number. This value can be tracked by subclasses to support current-index-relative (backward) offsets.