Function rustix::buffer::split_init

source ·
pub(crate) unsafe fn split_init(
    buf: &mut [MaybeUninit<u8>],
    init_len: usize,
) -> (&mut [u8], &mut [MaybeUninit<u8>])
Expand description

Split an uninitialized byte slice into initialized and uninitialized parts.

§Safety

init_len must not be greater than buf.len(), and at least init_len bytes must be initialized.