Skip to content

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

Open
@ajoaoff

Description

@ajoaoff

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions