read_utf8_string

Function read_utf8_string 

Source
pub fn read_utf8_string<'a>(
    cursor: &mut usize,
    buf: &'a [u8],
) -> Result<&'a str, MqttError<ErrorPlaceHolder>>
Expand description

Reads a UTF-8 encoded string (prefixed with a 2-byte length) from the buffer.