MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / peek_pointer

Method peek_pointer

pydevd_attach_to_process/winappdbg/process.py:2288–2301  ·  view source on GitHub ↗

Reads a pointer value from the memory of the process. @see: L{read_pointer} @type lpBaseAddress: int @param lpBaseAddress: Memory address to begin reading. @rtype: int @return: Pointer value read from the process memory. Returns zero

(self, lpBaseAddress)

Source from the content-addressed store, hash-verified

2286 return self.__poke_c_type(lpBaseAddress, "=Q", unpackedValue)
2287
2288 def peek_pointer(self, lpBaseAddress):
2289 """
2290 Reads a pointer value from the memory of the process.
2291
2292 @see: L{read_pointer}
2293
2294 @type lpBaseAddress: int
2295 @param lpBaseAddress: Memory address to begin reading.
2296
2297 @rtype: int
2298 @return: Pointer value read from the process memory.
2299 Returns zero on error.
2300 """
2301 return self.__peek_c_type(lpBaseAddress, "@P", ctypes.c_void_p)
2302
2303 def poke_pointer(self, lpBaseAddress, unpackedValue):
2304 """

Callers 2

__get_stack_traceMethod · 0.80

Calls 1

__peek_c_typeMethod · 0.95

Tested by

no test coverage detected