[][src]Function peek_poke::ensure_red_zone

pub fn ensure_red_zone<T: Poke>(bytes: &mut Vec<u8>)

Add T::max_size() "red zone" (padding of zeroes) to the end of the vec of bytes. This allows deserialization to assert that at least T::max_size() bytes exist at all times.