Skip to content

Conversation

@natecook1000
Copy link
Member

This adds two parsers that produces inline arrays:

  • a byte-based parser that fills an InlineArray with UInt8 values
  • a parser closure-based parser that fills an InlineArray with the results of the parser, called the required number of times.

Checklist

  • I've added at least one test that validates that my change is working, if appropriate
  • I've followed the code style of the rest of the project
  • I've run Scripts/format.sh to correctly format my change
  • I've read the Contribution Guidelines
  • I've updated the documentation if necessary

This adds two parsers that produces inline arrays:
- a byte-based parser that fills an InlineArray with `UInt8` values
- a parser closure-based parser that fills an InlineArray with
  the results of the parser, called the required number of times.
@natecook1000 natecook1000 marked this pull request as ready for review September 10, 2025 18:53
Copy link
Member

@numist numist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, this should make parsing fixed size byte fields (like magic bytes) a lot easier.

@natecook1000 natecook1000 merged commit 9056f2c into main Sep 19, 2025
16 checks passed
@natecook1000 natecook1000 deleted the inline-array branch September 19, 2025 13:59
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.

3 participants