Skip to main content

get_nullable_string_borrowed

Function get_nullable_string_borrowed 

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

Decode a nullable, non-flexible STRING that borrows from the input buffer.

ยงErrors

Returns the underlying protocol error when input is truncated, contains an invalid length or tag, or cannot be encoded for the selected version.