compress
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.