Skip to main content

scan_pattern

Function scan_pattern 

Source
pub fn scan_pattern(
    start: usize,
    size: usize,
    pattern: &[u8],
    mask: &str,
) -> Result<Vec<usize>, ScanError>
Expand description

Scans for a pattern within a memory range, returning all matches

§Arguments

  • start - The start address of the scan
  • size - The size of the memory range to scan
  • pattern - The byte sequence to find
  • mask - The mask string (‘x’ for match, ‘?’ for wildcard)

§Returns

  • Result<Vec<usize>, ScanError> - A list of addresses where the pattern matches