pub fn count_zeros(slice: &[u8], offset: usize, len: usize) -> usize
Expand description
Returns the number of zero bits in the slice offsetted by offset
and a length of length
.
§Panics
This function panics iff (offset + len).saturating_add(7) / 8 >= slice.len()
because it corresponds to the situation where len
is beyond bounds.