SplitScript reference / Signature / findIn
Signature.findIn
Method
Signature.findIn(bytes: [u8], start: u32) -> u32?
Finds the first complete match at or after a byte offset.
Returns None when no match fits. Searching again from the previous match plus one includes overlapping matches. The input array is unchanged.
Parameters
bytes: Bytes to search without reading process memory.start: First candidate offset, including this position.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Search bytes already read from memory
let position = sig"A? ?? 0B".findIn([0xa1, 0x00, 0x0b], 0)