pub fn e_diff(li: impl AsRef<[u64]>) -> Vec<u8> ⓘAvailable on crate feature
diff only.Expand description
Encodes a strictly increasing sequence of u64 integers using differential encoding (delta encoding) combined with variable-byte encoding.
This reduces the serialized size by storing the differences between consecutive values.
使用差分编码(增量编码)结合变长编码对严格递增的 u64 整数序列进行编码。
通过存储连续值之间的差值来减少序列化后的大小,具有压缩效果。