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 OutputReader::fill_uninit() which accepts a `&mut [MaybeInit<u8>]… #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PaulGrandperrin
Copy link
Contributor

to avoid unnecessary memory initialization

@oconnor663
Copy link
Member

Is there a safe conversion between something like &mut MaybeUninit<[u8; 64]> and &mut [MaybeUninit<u8>]? It seems like there could be, along the lines of conversions that exist for Cell, but I haven't seen one yet for MaybeUninit. What would a caller look like?

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