Function peek_poke::strip_red_zone
source · pub fn strip_red_zone<T: Poke>(bytes: &mut Vec<u8>)
Expand description
Remove the “red zone” (padding of zeroes) from the end of the vec of bytes
.
This is effectively the inverse of ensure_red_zone
, with the caveat that
space reserved for the red zone is not un-reserved. Callers are repsonsible
for making sure the vec actually has a red zone, otherwise data bytes can
get stripped instead.