-
Notifications
You must be signed in to change notification settings - Fork 42
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
feat: make {from,to}_{b,l}e_bytes
const
#329
Conversation
/// Converts a big-endian byte array of size exactly | ||
/// [`Self::BYTES`] to [`Uint`]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason for reordering methods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consistency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya, just makes the functional review harder
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #329 +/- ##
==========================================
+ Coverage 80.55% 80.78% +0.22%
==========================================
Files 54 54
Lines 6039 6111 +72
==========================================
+ Hits 4865 4937 +72
Misses 1174 1174
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice
Motivation
Const impl + some perf gains
Solution
Hand roll use of iterators, for loops and
slice::reverse
PR Checklist