SplitScript reference / Process / scanMemoryAny

Process.scanMemoryAny

Method

Process.scanMemoryAny(signatures: [Signature]) -> async SignatureMatch

Scans for the first of several signatures across process memory.

Signatures are tried in array order within each bounded memory window. The returned index identifies the matching array element. The operation remains cooperative and is cancelled when the process closes.

Parameters

  • signatures: Candidate patterns in priority order. The array must not be empty.

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

Discover one of several supported layouts

let found = await process.scanMemoryAny([
    sig"48 8B 05 ?? ?? ?? ??",
    sig"48 8B 1D ?? ?? ?? ??",
])