[This is preliminary documentation and is subject to change.]
Assembly: RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.47.1037.9935)
public static IntPtr FindAllOccurrencesOfPattern( string pattern, IntPtr startAddress )
Public Shared Function FindAllOccurrencesOfPattern ( pattern As String, startAddress As IntPtr ) As IntPtr()
public: static array<IntPtr>^ FindAllOccurrencesOfPattern( String^ pattern, IntPtr startAddress )
- Type: SystemString
The pattern to find. Wildcard ?? is supported.
- Type: SystemIntPtr
The address to start searching at. If Zero, search is started at the base address.
Return ValueType: IntPtr
An IntPtr representing the memory location the pattern was found at, or Zero if the pattern wasn't found.
The pattern should be in the following format:
XX XX XX XX XX XX XX XX XX XX
Where each XX is a hexadecimal value representing the byte, or ?? to indicate a wildcard.
eg. "77 37 E8 ?? ?? ?? ?? 84 C0"
All white space is ignored.
Even though the search algorithm is fast, you shouldn't be calling this every frame.
Ideally, you want to find all the patterns you need when your plugin initializes.