Skip to content

[DEV] New byteorder type - #66

Merged
MatrixEditor merged 8 commits into
masterfrom
feat/inherit-byteorder
Aug 22, 2026
Merged

MatrixEditor merged 8 commits into
masterfrom
feat/inherit-byteorder

Conversation

@MatrixEditor

@MatrixEditor MatrixEditor commented Aug 1, 2026 •

Copy link
Copy Markdown
Owner
  • New Inherit byte order (@struct(order=Inherit), also supported on
    @bitfield):
    a struct declared this way resolves its byte order from whichever struct embeds it (any nesting depth, including arrays), instead of a fixed order.
  • context.parent now correctly resolves
  • New default_struct_order parameter to change the default struct order whenever order=None has been set.

Falls back to the regular default when used standalone. Also adds ByteOrder + Struct (e.g. LittleEndian + Inner) to override the order at a single embedding site. Purely opt-in: structs that don't use Inherit are unaffected.

@MatrixEditor MatrixEditor self-assigned this Aug 1, 2026
@MatrixEditor
MatrixEditor marked this pull request as draft August 1, 2026 08:14
@MatrixEditor
MatrixEditor marked this pull request as ready for review August 22, 2026 07:14
@MatrixEditor
MatrixEditor merged commit b0ad735 into master Aug 22, 2026
13 checks passed
@MatrixEditor
MatrixEditor deleted the feat/inherit-byteorder branch August 22, 2026 07:14
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

Successfully merging this pull request may close these issues.

1 participant