package
Version:
v0.0.0-...-15ff628
Opens a new window with list of versions in this module.
Published: Jul 1, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
BitIsSet checks whether a bit is set in a byte.
ByteToBinaryString converts a byte to a bit string
Decode takes an encoded Remaining Length slice of bytes and decodes it into an integer.
Returns an additional error if the decoding fails.
func Encode(x int) (encoded []byte)
Encode takes an integer representing Remaining Length and encodes it according to the MQTT spec.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.