-
Notifications
You must be signed in to change notification settings - Fork 116
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
Feature request: Bitfield setter and getter #1475
Labels
enhancement
New feature or request
Comments
I try to use the way that bindgen use to process bitfield. patch is below |
|
I don't think there's currently any metadata describing this. I'm not sure it's worth the complexity, but I'll pass it on for their consideration. |
I believe this is a duplicate of #1392. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Motivation
Structs like MEM_EXTENDED_PARAMETER which have bitfield member is hard to be accessed and modified.
Original definition
Rust definition
Currently Rust does not support bitfields. It is cumbersome, clumsy and error-prone that when I try to pass a struct like
MEM_EXTENDED_PARAMETER
toVirtualAlloc
.I think provide interfaces like
would be easier to use this struct
Drawbacks
No response
Rationale and alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: