This is the interface spec (and a few helper utils) for the unified
memory object interface.
NOTE: If your actual underlying memory format is such that over-riding
anything (like isValidPointer!) can be faster than the default
implementation, DO IT!
|
|
|
addMemoryMap(self,
mapva,
perms,
fname,
bytes) |
source code
|
|
|
allocateMemory(self,
size,
perms=7,
suggestaddr=0) |
source code
|
|
|
getMemoryMap(self,
va)
Return a tuple of mapva,size,perms,filename for the memory map which
contains the specified address (or None). |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
probeMemory(self,
va,
size,
perm)
Check to be sure that the given virtual address and size is contained
within one memory map, and check that the perms are contained within
the permission bits for the memory map. |
source code
|
|
|
|
|
|
|
readMemory(self,
va,
size)
Read memory from the specified virtual address for size bytes and
return it as a python string. |
source code
|
|
|
|
|
searchMemory(self,
needle,
regex=False)
A quick cheater way to searchMemoryRange() for each of the current
memory maps. |
source code
|
|
|
searchMemoryRange(self,
needle,
address,
size,
regex=False)
Search the specified memory range (address -> size) for the string
needle. |
source code
|
|
|
|
|
writeMemoryFormat(self,
va,
fmt,
*args)
Write a python format sequence of variables out to memory after
serializing using struct pack... |
source code
|
|