We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#[repr(u8)], etc. control the size of a C-like enum, there doesn't seem to be a portable way of specifying this in C but I could be missing something.
#[repr(u8)]
#[repr(packed)] removes any padding in the item. Maybe this can be done with
#[repr(packed)]
#pragma pack(push) #pragma pack(1) // ... #pragma pack(pop)
but I'm not yet sure whether there are any guarantees that the two are equivalent.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
#[repr(u8)]
, etc. control the size of a C-like enum, there doesn't seem to be a portable way of specifying this in C but I could be missing something.#[repr(packed)]
removes any padding in the item. Maybe this can be done withbut I'm not yet sure whether there are any guarantees that the two are equivalent.
The text was updated successfully, but these errors were encountered: