Skip to main content

find_byte

Function find_byte 

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

Scan a byte slice for a specific byte using SIMD where available.

On aarch64, uses NEON intrinsics for 16-byte-at-a-time scanning. Falls back to a scalar scan on other architectures.