Skip to content

Could we have an API with output: &mut [MaybeUninit<u8>]? #62

Description

@michaelbeaumont

Would there be any blockers to providing an API accepting &mut [MaybeUninit<u8>] and using MaybeUninit::write internally? The advantage being enabling APIs like BytesMut::spare_capacity_mut to avoid zeroing out allocated bytes to get a &mut [u8]. Is there an alternative?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions