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

Added SizeWith impl for numeric types without Ctx. #99

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

Frostie314159
Copy link
Contributor

This PR introduces SizeWith impls for numeric types, without requiring Endian as context. It wasn't immediately clear, to me, why the ctx was required.

Copy link
Owner

@m4b m4b left a comment

Choose a reason for hiding this comment

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

I think this should be fine to merge, since the ctx can't affect the size, and we have identical code for Endian

@m4b m4b merged commit 3cffc5a into m4b:master Aug 12, 2024
6 checks passed
@m4b
Copy link
Owner

m4b commented Aug 12, 2024

@Frostie314159 do you need a release with this and the size with for fixed size arrays? if not necessary I would prefer to wait to see if there's anything else pending, need to re-review the other pending PR here to see if it should be merged

@Frostie314159
Copy link
Contributor Author

It's not urgent, it'd make one section of my code bit neater, but isn't required.

Frostie314159 added a commit to Frostie314159/scroll that referenced this pull request Aug 27, 2024
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