write_variable_byte_integer

Function write_variable_byte_integer 

Source
pub fn write_variable_byte_integer(
    cursor: &mut usize,
    buf: &mut [u8],
    val: usize,
) -> Result<(), MqttError<ErrorPlaceHolder>>
Expand description

Writes a variable-byte integer to the buffer, advancing the cursor.