|
|
@ -50,7 +50,7 @@ namespace Ashita |
|
|
|
* @param {uintptr_t} count - The result count to use if the pattern is found multiple times. |
|
|
|
* @param {uintptr_t} count - The result count to use if the pattern is found multiple times. |
|
|
|
* @returns {uintptr_t} The address where the pattern was located, 0 otherwise. |
|
|
|
* @returns {uintptr_t} The address where the pattern was located, 0 otherwise. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
static uintptr_t FindPattern(std::vector<uint8_t> data, uintptr_t baseAddress, const char* pattern, uintptr_t offset, uintptr_t count) |
|
|
|
static uintptr_t FindPattern(const std::vector<uint8_t>& data, uintptr_t baseAddress, const char* pattern, uintptr_t offset, uintptr_t count) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Ensure the incoming pattern is properly aligned..
|
|
|
|
// Ensure the incoming pattern is properly aligned..
|
|
|
|
if (strlen(pattern) % 2 > 0) |
|
|
|
if (strlen(pattern) % 2 > 0) |
|
|
|