I'm using RHCP's classMemory library and had a question around efficiency.
I'm currently using the following code for a function:
Code: Select all
memWrite(jp, en, loopCount := "1", start:= "0x46000000", end:= "0x50000000")
{
loop, %loopCount%
{
AOB:= mem.hexStringToPattern(jp)
Address:= mem.processPatternScan(start, end, AOB*)
if (%loopCount% > 1)
{
Address:= Address + 1
}
Address:= mem.processPatternScan(Address,,AOB*)
mem.writeBytes(Address, en)
}
}
I read a little bit about readRaw(), which lets you dump large chunks of memory. Would something like that be feasible with the amount of memory I'm wanting to store in a variable to scan through? Something like dumping that region of memory to a variable, doing all of my searches in that buffer to find the address, then write to the actual addresses.
Thanks for your help.