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

Method peek_char

pydevd_attach_to_process/winappdbg/process.py:2040–2056  ·  view source on GitHub ↗

Reads a single character from the memory of the process. @see: L{read_char} @type lpBaseAddress: int @param lpBaseAddress: Memory address to begin reading. @rtype: int @return: Character read from the process memory. Returns zero on e

(self, lpBaseAddress)

Source from the content-addressed store, hash-verified

2038 return r
2039
2040 def peek_char(self, lpBaseAddress):
2041 """
2042 Reads a single character from the memory of the process.
2043
2044 @see: L{read_char}
2045
2046 @type lpBaseAddress: int
2047 @param lpBaseAddress: Memory address to begin reading.
2048
2049 @rtype: int
2050 @return: Character read from the process memory.
2051 Returns zero on error.
2052 """
2053 char = self.peek(lpBaseAddress, 1)
2054 if char:
2055 return ord(char)
2056 return 0
2057
2058 def poke_char(self, lpBaseAddress, char):
2059 """

Callers 1

_notify_single_stepMethod · 0.80

Calls 1

peekMethod · 0.95

Tested by

no test coverage detected