Skip to content

Explain byte order when parsing packed little-endian bit fields - #357

Open
Aschenbath wants to merge 1 commit into
keichi:masterfrom
Aschenbath:fix/oss30-20261123-1909-binary-parser-packed-date
Open

Aschenbath wants to merge 1 commit into
keichi:masterfrom
Aschenbath:fix/oss30-20261123-1909-binary-parser-packed-date

Conversation

@Aschenbath

Copy link
Copy Markdown
Contributor

Clarify that the current bit-field engine assembles multi-byte groups in big-endian byte order even when little-endian field extraction is selected. Show how to parse the packed little-endian date from #46 with a copying wrapped callback followed by bit4/bit5/bit7 fields. This documents a working recipe without changing existing bit-field semantics.

Validation: executed the exact README recipe for [0x91, 0x13], upper field boundaries and a zero year offset, with Buffer and Uint8Array views. All parsed dates match and inputs remain unchanged.

Fixes #46.

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.

Confused about big-endian vs little-endian for bitfields

1 participant