pub fn read_utf8_string<'a>( cursor: &mut usize, buf: &'a [u8], ) -> Result<&'a str, MqttError<ErrorPlaceHolder>>
Reads a UTF-8 encoded string (prefixed with a 2-byte length) from the buffer.