Skip to main content

encode_cursor_record

Function encode_cursor_record 

Source
pub fn encode_cursor_record(
    level: CursorLevel,
    offset: u64,
    out: &mut Vec<u8>,
) -> Result<(), VarintError>
Expand description

Appends one (level, offset) record to out.

Records are QUIC varint pairs rather than CBOR: a record is hot-path and self-delimiting, and a CBOR map per record would cost a map header per reported byte range for no gain — the head frame already carries every field a record could need to name.