Crate mqtt_proto

source ·

Modules

Structs

Enums

Constants

Traits

Functions

  • Read first byte(packet type and flags) and decode remaining length
  • Calculate header length by given total length (the total length MUST be valid value).
  • Calculate remaining length by given total length (the total length MUST be valid value).
  • Return the packet total encoded length by a given remaining length.
  • Return the encoded size of the variable byte integer.