pub fn encode_segment_chunk<'a>(
keys: impl IntoIterator<Item = &'a [u8]>,
) -> Vec<u8> ⓘExpand description
Encodes one chunk’s worth of keys: a run of (u64 big-endian length, key) records — the same framing as a whole pre-format-3 segment, so one
decoder reads both.
Callers that already hold a chunk’s keys (an index segment’s leaf, whose
boundaries are the ones chunk_segment_keys cuts at) encode it
directly instead of re-chunking the stream around it.