Skip to content

Add support for variable length arrays#11

Merged
rmorshea merged 8 commits into
mainfrom
variable-len-arrs
May 16, 2026
Merged

Add support for variable length arrays#11
rmorshea merged 8 commits into
mainfrom
variable-len-arrs

Conversation

@rmorshea
Copy link
Copy Markdown
Owner

Variable length arrays now have dedicated support via tuples:

class MyModel(CModel):
    # bounded at runtime by a count field
    bounded_len_array_count: int
    bounded_len_array: Annotated[tuple[int, ...], CCountField.template("{}_count")]
    # unbounded length
    unbounded_len_array: tuple[in, ...]

@rmorshea rmorshea merged commit 38d9d64 into main May 16, 2026
7 of 8 checks passed
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