read_nullable_string

Function read_nullable_string 

Source
pub fn read_nullable_string<'a>(
    buf: &mut &'a [u8],
) -> Result<&'a str, DecodeError>
Expand description

Read a nullable string from the slices buf.

§Errors

Fails if the buffer doesn’t contain a valid utf8 msgpack string or a null marker.