fn all_zero(buf: &[u8]) -> bool
Expand description
Efficiently detect whether a slice of u8
is all zero.
This is used in encoding of Allocation
to special-case all-zero allocations. It is only
optimized a little, because for many allocations the encoding of the actual bytes does not
dominate runtime.