Returns whether all bytes in a byte slice have a specified value.
fn all_bytes(buf: &[u8], val: u8) -> bool
The slice to be checked.
The expected value.
Returns whether all bytes in buf have the value val.
buf
val