Skip to content

Explicit struct layout #5073

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

Closed
daurnimator opened this issue Apr 16, 2020 · 1 comment
Closed

Explicit struct layout #5073

daurnimator opened this issue Apr 16, 2020 · 1 comment
Labels
proposal This issue suggests modifications. If it also has the "accepted" label then it is planned.

Comments

@daurnimator
Copy link
Contributor

daurnimator commented Apr 16, 2020

oops; I accidentally created this issue before I wrote it out. Bear with me for a couple of days as I finish the proposal


packed struct doesn't give enough control
Explicit layout by declaring bitOffsetOf/byteOffsetOf
Cap n proto
Overlapping fields

Alternative to #5049
This proposal may be adding too much complexity, #383 might be a better solution.

@daurnimator daurnimator added proposal This issue suggests modifications. If it also has the "accepted" label then it is planned. work in progress This pull request is not ready for review yet. labels Apr 16, 2020
@andrewrk
Copy link
Member

Feel free to edit & reopen when it's done

@andrewrk andrewrk removed the work in progress This pull request is not ready for review yet. label Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal This issue suggests modifications. If it also has the "accepted" label then it is planned.
Projects
None yet
Development

No branches or pull requests

2 participants