Expand description
BeBytes-compatible variable length integer implementation for MQTT
This module provides a variable length integer type that integrates with BeBytes 2.3.0
for automatic serialization/deserialization with size expressions support.
Structs§
- Variable
Int - Variable length integer as defined by MQTT specification
Constants§
- VARIABLE_
BYTE_ INT_ MAX - Maximum value that can be encoded as a variable byte integer (compatibility constant)
- VARIABLE_
INT_ MAX - Maximum value that can be encoded as a variable byte integer (268,435,455)
Functions§
- decode_
variable_ int - Decodes a variable byte integer from the buffer (compatibility function)
- encode_
variable_ int - Encodes a u32 value as a variable byte integer (compatibility function)
- encoded_
variable_ int_ len - Alias for
variable_int_lenfor consistency (compatibility function) - variable_
int_ len - Calculates the number of bytes needed to encode a value (compatibility function)