Function zerocopy::extend_vec_zeroed[][src]

pub fn extend_vec_zeroed<T: FromBytes>(v: &mut Vec<T>, additional: usize)
Expand description

Extends a Vec<T> by pushing additional new items onto the end of the vector. The new items are initialized with zeroes.

Panics

Panics if Vec::reserve(additional) fails to reserve enough memory.