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

Support other representations. #33

Open
Sean1708 opened this issue Jan 22, 2016 · 0 comments
Open

Support other representations. #33

Sean1708 opened this issue Jan 22, 2016 · 0 comments

Comments

@Sean1708
Copy link
Owner

#[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 with

#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.

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

1 participant