[This is preliminary documentation and is subject to change.]
Assembly: RagePluginHook (in RagePluginHook.dll) Version: 0.0.0.0 (0.56.1131.11510)
public static IntPtr FindAllOccurrencesOfPattern( string pattern )
Public Shared Function FindAllOccurrencesOfPattern ( pattern As String ) As IntPtr()
public: static array<IntPtr>^ FindAllOccurrencesOfPattern( String^ pattern )
- Type: SystemString
The pattern to find. Wildcard ?? is supported.
Return ValueType: IntPtr
An IntPtr representing the memory location the pattern was found at, or Zero if the pattern wasn't found.
Scan starts at the base address. Use overload to specify start address.
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.