Skip to main content

count_byte

Function count_byte 

Source
pub fn count_byte(data: &[u8], needle: u8) -> usize
Expand description

Count the number of occurrences of needle in data.

On aarch64, uses NEON intrinsics for fast counting.