fn all_zero(buf: &[u8]) -> boolExpand 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.