Skip to content

feat: Struct-level Alignment (AlignTo) - #69

Merged
MatrixEditor merged 3 commits into
masterfrom
feat/struct-alignment
Aug 30, 2026
Merged

feat: Struct-level Alignment (AlignTo)#69
MatrixEditor merged 3 commits into
masterfrom
feat/struct-alignment

Conversation

@MatrixEditor

Copy link
Copy Markdown
Owner

New whole-model alignment for structs and bitfields:

>>> @struct(align_to=4)
... class Format:
...     a: uint8
...
>>> sizeof(Format)
4
>>> unpack(Format, b"\x01\x00\x00\x00")
Format(a=1)

@MatrixEditor
MatrixEditor merged commit 9287c4e into master Aug 30, 2026
13 checks passed
@MatrixEditor
MatrixEditor deleted the feat/struct-alignment branch August 30, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant