-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable-length integer encoding #8
Projects
Comments
It seems not to be possible to specify MQTT with ASN.1 in combination with ACN. ACN only supports the following encodings for integers: pos-int, twos-complement, BCD, ASCII. |
Merged
treiher
changed the title
Support variable-length integer encoding
Variable-length integer encoding
May 28, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context and Problem Statement
In some protocols, the length field is encoded using a variable-length encoding scheme. In MQTT, such an encoding is used for the Remaining Length field. There are multiple variants of variable-length encoding of integers.
Examples
Variable-Length Quantity (VLQ)
VLQ is used by:
Little Endian Base 128 (LEB128)
LEB128 is used by:
MQTT
Variable Byte Integer (equivalent to ULEB128)
QUIC
Variable-Length Integer Encoding
Bluetooth L2CAP
(Bluetooth Core Specification v5.2 - Vol 3, Part A, 4.2)
The text was updated successfully, but these errors were encountered: