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

provide GenericAlignedStruct that auto Pads itself to keep alignment. #57

Open
ajoaoff opened this issue Jun 28, 2021 · 0 comments
Open

Comments

@ajoaoff
Copy link

ajoaoff commented Jun 28, 2021

Original issue opened by @erickvermot at kytos#411.

While implementing Match and ActionSetField classes (kytos#348), padding to keep alignment of variable size structs was implemented.
I suggest we place the custom get_size and pack methods in a new base class called GenericAlignedStruct to be used whenever needed, avoiding reimplementation and bugs.
(the methods implementation can be found in the PR kytos#392.)

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