pub(crate) fn leading_record(bytes: &[u8]) -> (&[u8], Option<&[u8]>)Expand description
Splits off the leading record of a stored key or value, as a release build decodes a lone string from it.
The rest is whatever follows the separator ending that record, or None
when no separator does. A release build ignores the rest, where a debug build
asserts there is none.