SplitScript reference / Module / scanAny
Module.scanAny
Method
Module.scanAny(signatures: [Signature]) -> async SignatureMatch
Scans the module for the first of several signatures.
One signature is checked in one bounded window per update. The result identifies both the matching address and candidate index.
Parameters
signatures: Candidate patterns in priority order.
Effects: allocates, 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
Select a module-specific layout
let module = await process.mainModule()
let layout = await module.scanAny([sig"48 8B ??", sig"A1 ?? ??"])