Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

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

Open
erickvermot opened this issue Jul 20, 2017 · 0 comments
Open

Comments

@erickvermot
Copy link
Contributor

erickvermot commented Jul 20, 2017

While implementing Match and ActionSetField classes (#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 #392.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant