MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / read_memory

Method read_memory

windows/winobject/process.py:1077–1085  ·  view source on GitHub ↗

Read ``size`` from ``addr`` :return: The data read :rtype: :class:`str`

(self, addr, size)

Source from the content-addressed store, hash-verified

1075 return winproxy.ReadProcessMemory(self.handle, addr, lpBuffer=buffer_addr, nSize=size)
1076
1077 def read_memory(self, addr, size):
1078 """Read ``size`` from ``addr``
1079
1080 :return: The data read
1081 :rtype: :class:`str`
1082 """
1083 buffer = ctypes.create_string_buffer(size)
1084 self.low_read_memory(addr, ctypes.byref(buffer), size)
1085 return buffer[:]
1086
1087 # Simple cache test
1088 # real_read = read_memory

Callers 14

read_byteMethod · 0.45
read_shortMethod · 0.45
read_dwordMethod · 0.45
read_qwordMethod · 0.45
read_stringMethod · 0.45
read_wstringMethod · 0.45
read_apiset_wstringMethod · 0.45
_setup_breakpoint_BPMethod · 0.45
handle_exceptionMethod · 0.45
add_bpMethod · 0.45
strMethod · 0.45

Calls 1

low_read_memoryMethod · 0.95

Tested by

no test coverage detected