Skip to content
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

Add support for VLQs (Variable Length Quantities) types #6

Open
GoomiiV2 opened this issue May 21, 2021 · 0 comments
Open

Add support for VLQs (Variable Length Quantities) types #6

GoomiiV2 opened this issue May 21, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@GoomiiV2
Copy link
Member

Some messages have numbers that vary in length of bits, eg if a bit is set then the value is 16 bits long with a useable value range of 15 bits, if its 0 then its just 8 bits (a byte) with a range of a 7 bit value.

Will prob add this as a new type vla eg public vla value;.
This would prevent blocks with these from being fixed sized.
The vla type should be a uint internally but packed and unpack in the smallest vla representation it can.

@GoomiiV2 GoomiiV2 added the enhancement New feature or request label May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant