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

Implement from_be_bytes/from_le_bytes for Uint64 and Uint128 #2351

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

webmaster128
Copy link
Member

Closes #2269

We could use a similar macro for the larger types based on bnum, but that would be a lot of extra work that does not provide an immediate benefit. I'd do that later maybe but in a separate PR.

Copy link
Collaborator

@chipshort chipshort left a comment

Choose a reason for hiding this comment

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

Nice!

@chipshort chipshort merged commit 7ef262e into main Jan 28, 2025
39 checks passed
@chipshort chipshort deleted the from_be_bytes-from_le_bytes branch January 28, 2025 09:50
@webmaster128
Copy link
Member Author

@mergify backport release/2.2

Copy link
Contributor

mergify bot commented Jan 29, 2025

backport release/2.2

✅ Backports have been created

@webmaster128
Copy link
Member Author

@mergify backport release/2.2

Copy link
Contributor

mergify bot commented Jan 30, 2025

backport release/2.2

✅ Backports have been created

@webmaster128
Copy link
Member Author

@mergify backport release/2.2

Copy link
Contributor

mergify bot commented Jan 30, 2025

backport release/2.2

✅ Backports have been created

@webmaster128
Copy link
Member Author

webmaster128 commented Jan 30, 2025

Manual backport here: #2360

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.

Constructor parity for int types
2 participants