-
Notifications
You must be signed in to change notification settings - Fork 107
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
Replace for loop with [u8]::fill
method
#38
Comments
I'll take this one |
Awesome, thanks @MSalah73! Welcome to zerocopy 😃 |
MSalah73
added a commit
to MSalah73/zerocopy
that referenced
this issue
Oct 10, 2022
Refactored map_zeroed & map_prefix_tuple_zeroed's for-loops with the [u8]::fill method. Resloves google#38
MSalah73
added a commit
to MSalah73/zerocopy
that referenced
this issue
Oct 10, 2022
Refactored map_zeroed & map_prefix_tuple_zeroed's for-loops with the [u8]::fill method. Resolves google#38
joshlf
pushed a commit
that referenced
this issue
Oct 10, 2022
Refactor map_zeroed & map_prefix_tuple_zeroed's for loops with the `[u8]::fill` method. Resolves #38
joshlf
pushed a commit
that referenced
this issue
Aug 3, 2023
Refactor map_zeroed & map_prefix_tuple_zeroed's for loops with the `[u8]::fill` method. Resolves #38
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
map_zeroed
andmap_prefix_tuple_zeroed
, we zero a byte slice by doing:Instead, we could use
[u8]::fill
:The text was updated successfully, but these errors were encountered: