Function vec_write_all_unchecked

Source
unsafe fn vec_write_all_unchecked<A>(
    pos: usize,
    vec: &mut Vec<u8, A>,
    buf: &[u8],
) -> usize
where A: Allocator,
Expand description

Writes the slice to the vec without allocating.

ยงSafety

vec must have buf.len() spare capacity.