pub struct VariableByteIntegerDecoder;
Expand description
Variable byte integer decoder structure is help structure which implements function used to decode message lenghts in MQTT packet and other parts encoded into variable byte integer.
Implementations§
source§impl VariableByteIntegerDecoder
impl VariableByteIntegerDecoder
sourcepub fn decode(encoded: VariableByteInteger) -> Result<u32, BufferError>
pub fn decode(encoded: VariableByteInteger) -> Result<u32, BufferError>
Decode function takes as paramater encoded integer represented as array of 4 unsigned numbers of exactly 1 Byte each -> 4 Bytes maximal same as maximal amount of bytes for variable byte encoding in MQTT.