Function std::io::cursor::vec_write_unchecked

source ·
unsafe fn vec_write_unchecked<A>(
    pos: usize,
    vec: &mut Vec<u8, A>,
    buf: &[u8]
) -> usizewhere
    A: Allocator,
Expand description

Writes the slice to the vec without allocating

Safety: vec must have buf.len() spare capacity