write_utf8_string

Function write_utf8_string 

Source
pub fn write_utf8_string(
    buf: &mut [u8],
    s: &str,
) -> Result<usize, MqttError<ErrorPlaceHolder>>
Expand description

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