ensure_zeros

Function ensure_zeros 

Source
pub fn ensure_zeros<B: Buf>(buf: &mut B, size: usize) -> Result<(), Error>
Expand description

Ensures the next size bytes are all zeroes in the provided buffer, returning an Error otherwise.