SplitScript reference / Process / scan
Process.scan
Method
Process.scan(address: address, size: u64, signature: Signature) -> async address
Scans a process-memory range.
Suspends until the signature is found in the requested range. Large ranges are scanned cooperatively across ticks so the autosplitter keeps yielding to the host.
Parameters
address: The beginning of the range.size: The number of bytes to scan.signature: The compiled signature pattern.
Effects: reads process memory, requires an attached process, suspends, cancels when the process closes
Runtime behavior: available only in onAttach; suspends; cancels when the process closes
Examples
Scan a memory range
let marker = await process.scan(module.address, module.size, sig"48 8B ?? 89")