Expand description
§MQTT Serialization Utilities
This module provides helper functions for reading and writing MQTT-specific data types from and to byte buffers, such as variable-byte integers and length-prefixed strings.
Functions§
- read_
utf8_ string  - Reads a UTF-8 encoded string (prefixed with a 2-byte length) from the buffer.
 - read_
variable_ byte_ integer  - Reads a variable-byte integer from the buffer, advancing the cursor.
 - write_
utf8_ string  - Writes a UTF-8 encoded string (prefixed with a 2-byte length) to the buffer.
 - write_
variable_ byte_ integer  - Writes a variable-byte integer to the buffer, advancing the cursor.
 - write_
variable_ byte_ integer_ len  - A simplified version of 
write_variable_byte_integerfor external use that returns the byte count.