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.