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

Method poke_char

pydevd_attach_to_process/winappdbg/process.py:2058–2076  ·  view source on GitHub ↗

Writes a single character to the memory of the process. @note: Page permissions may be changed temporarily while writing. @see: L{write_char} @type lpBaseAddress: int @param lpBaseAddress: Memory address to begin writing. @type char: str

(self, lpBaseAddress, char)

Source from the content-addressed store, hash-verified

2056 return 0
2057
2058 def poke_char(self, lpBaseAddress, char):
2059 """
2060 Writes a single character to the memory of the process.
2061
2062 @note: Page permissions may be changed temporarily while writing.
2063
2064 @see: L{write_char}
2065
2066 @type lpBaseAddress: int
2067 @param lpBaseAddress: Memory address to begin writing.
2068
2069 @type char: str
2070 @param char: Character to write.
2071
2072 @rtype: int
2073 @return: Number of bytes written.
2074 May be less than the number of bytes to write.
2075 """
2076 return self.poke(lpBaseAddress, chr(char))
2077
2078 def peek_int(self, lpBaseAddress):
2079 """

Callers

nothing calls this directly

Calls 1

pokeMethod · 0.95

Tested by

no test coverage detected