Function lrs::util::all_bytes

Returns whether all bytes in a byte slice have a specified value.

Syntax

fn all_bytes(buf: &[u8], val: u8) -> bool

Arguments

NameDescription
buf

The slice to be checked.

val

The expected value.

Return value

Returns whether all bytes in buf have the value val.