Skip to main content

next_record

Function next_record 

Source
pub(crate) fn next_record<'a>(data: &mut &'a [u8]) -> Option<(u32, &'a [u8])>
Expand description

Decodes one record into its column family identifier and borrowed key.

Value payloads are skipped after their lengths are consumed. Unsupported tags, truncated fields, and varints whose fifth byte retains its continuation bit return None and may leave the input advanced through the parsed prefix.