peek_poke

Function ensure_red_zone

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

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.