Skip to content

fix: Write bits to bytes in LSB - #9

Merged
rustaceanrob merged 1 commit into
2140-dev:masterfrom
rustaceanrob:lsb-fix
Oct 9, 2026
Merged

rustaceanrob merged 1 commit into
2140-dev:masterfrom
rustaceanrob:lsb-fix

Conversation

@rustaceanrob

@rustaceanrob rustaceanrob commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Fixes an inconsistency where bits are written in MSB, but he ordering of the low bytes themselves are LSB. Moves everything to LSB writes

@JoseSK999

Copy link
Copy Markdown
Contributor

What was the bug consequence here?

@rustaceanrob

Copy link
Copy Markdown
Member Author

There is nothing wrong with this encoding necessarily but it is odd to write the low bytes in LSB order, only to write each bit in MSB order. For consistency I would like to fix the spec and references before this is contained in a release.

@rustaceanrob
rustaceanrob marked this pull request as ready for review October 9, 2026 23:25
@rustaceanrob
rustaceanrob merged commit 532cbe1 into 2140-dev:master Oct 9, 2026
1 check passed
@rustaceanrob
rustaceanrob deleted the lsb-fix branch October 9, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants