Skip to main content

WildcardPattern

Type Alias WildcardPattern 

Source
pub type WildcardPattern<'a> = &'a [Option<u8>];
Expand description

Wildcard-aware byte pattern as a slice of Option<u8>. Some(b) matches the literal byte b; None matches any byte (the IDA-style ? token).

Most callers will build patterns through the Pattern struct (for runtime IDA-string parsing) or the crate::pattern! macro (for compile-time constants). The raw slice type is exposed so the underlying scan functions accept any source of pattern data without locking callers into a particular wrapper.