pub fn scan(buf: &[u8], class: &ByteClass) -> usize
Length of the run of bytes at the start of buf that are in class: the index of the first byte outside it, or buf.len().
buf
class
buf.len()