Expand description
This module implements a zero-copy/optimized byte representation for keys in Fxfs.
Its goal is to facilitate lexicographically comparable key serialization, permitting optimal byte representations when performing operations across persistent layer structures in LSM trees.
Structs§
- KeyDeserializer
- Handles decoding of sequential serialized key payloads.
- KeySerializer
- Serializes keys sequentially into binary format suitable for lexicographical comparisons.
- KeySerializer
Finalized - Proof token returned when key serialization has finalized its length headers.
Constants§
- MAX_
CHUNK_ LEN - Maximum length of a single key serialization chunk payload.
Traits§
- Merge
Serializer Output - Combines two
SerializeKey::Outputtypes across enum variants: producesKeySerializer<'a, B>if both variants are non-terminal, orKeySerializerFinalizedif either variant is terminal. - Serialize
Key - Trait defining the translation logic from Fxfs types into order-consistent binaries.
Functions§
- compare_
keys - Evaluates comparison ordering between two serialized keys located at the beginning of
aandb.