Skip to main content

get_compact_string_borrowed

Function get_compact_string_borrowed 

Source
pub fn get_compact_string_borrowed<'de>(
    buf: &mut &'de [u8],
) -> Result<&'de str, ProtocolError>
Expand description

Decode a COMPACT_STRING borrowing from the input buffer. Requires a contiguous buffer (i.e. &[u8]).