read_string_ref

Function read_string_ref 

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

Read a string from the slices buf.

§Errors

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