Skip to main content

parse_ida_pattern

Function parse_ida_pattern 

Source
pub fn parse_ida_pattern(pattern: &str) -> Result<(Vec<u8>, String), ScanError>
Expand description

Parses an IDA-style pattern string (e.g., “A1 ?? B2”) into bytes and mask

§Arguments

  • pattern - The pattern string (e.g., “DE AD BE EF” or “DE ?? BE EF”)

§Returns

  • Result<(Vec<u8>, String), ScanError> - A tuple containing the byte vector and the mask string