Function vec_write_all_unchecked

pub(in ::io::cursor) unsafe fn vec_write_all_unchecked<A>(pos: usize, vec: &mut Vec<u8, A>, buf: &[u8]) -> usize
where
    A: Allocator,

Writes the slice to the vec without allocating.

Safety

vec must have buf.len() spare capacity.