Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for decoding nested structs #63

Closed
wants to merge 2 commits into from

Conversation

ianlopshire
Copy link
Owner

No description provided.

Add `noAlignment` const that indicates no trimming should occur during
decoding.
}

type Test struct {
Nested Nested `fixed:"1,6,none"`
Copy link
Contributor

Choose a reason for hiding this comment

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

So this requires manually setting none for any nested structs; is there ever a case where you would want to trim the value before destructuring? It seems that the offsets would just always be wrong inside the nested struct if that was the case

@ianlopshire ianlopshire closed this Feb 8, 2024
@ianlopshire ianlopshire deleted the nested-struct-decode-fix branch February 8, 2024 23:20
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.

2 participants