Package vivisect :: Module emutils :: Class WorkspaceMemoryObject
[hide private]
[frames] | no frames]

Class WorkspaceMemoryObject

source code


Instance Methods [hide private]
 
__init__(self, vw, maps, nosegfault=False)
Take a set of memory maps (va, perms, fname, bytes) and put them in a sparse space finder.
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

Inherited from envi.memory.MemoryObject: addMemoryMap, getByteDef, getMemoryMap, getMemoryMaps, getMemorySnap, setMemorySnap, writeMemory

Inherited from envi.memory.IMemory: allocateMemory, getMaxReadSize, getMemArchModule, getPointerSize, getSegmentInfo, isExecutable, isReadable, isShared, isValidPointer, isWriteable, parseOpcode, probeMemory, protectMemory, readMemValue, readMemoryFormat, searchMemory, searchMemoryRange, setMemArchitecture, writeMemoryFormat

Method Details [hide private]

__init__(self, vw, maps, nosegfault=False)
(Constructor)

source code 

Take a set of memory maps (va, perms, fname, bytes) and put them in a sparse space finder. You may specify your own page-size to optimize the search for an architecture.

Overrides: envi.memory.IMemory.__init__

readMemory(self, va, size)

source code 

Read memory from the specified virtual address for size bytes and return it as a python string.

Example: mem.readMemory(0x41414141, 20) -> "A..."

Overrides: envi.memory.IMemory.readMemory
(inherited documentation)