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

Bit fields #260

Closed
joelreymont opened this issue May 20, 2024 · 2 comments
Closed

Bit fields #260

joelreymont opened this issue May 20, 2024 · 2 comments

Comments

@joelreymont
Copy link

It would be super-helpful to have bit fields like in Deku.

As it stands, I have to create 3 fields to deal with 2 bit fields stored in a 16-bit int:

  1. Two calculated bit fields calculated on read,
  2. A temporary 16-bit field that I read but don't store and that's used to calculated the bit fields,
  3. A bunch of annotations to state what's calculated and skipped on read and write.
@v1gnesh
Copy link

v1gnesh commented May 21, 2024

Bit fields with both support for both endianness.
bilge may fit the bill :)

@csnover
Copy link
Collaborator

csnover commented May 23, 2024

Thanks for your report! This looks like a duplicate of #192/#222, so I’d recommend to start there. There is also documentation on how to handle bit fields with modular-bitfield. If you are still having trouble, please open a Q&A that shows the format you are parsing so someone can give a more detailed recommendation. Thanks!

@csnover csnover closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2024
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

No branches or pull requests

3 participants