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

Method write

pydevd_attach_to_process/winappdbg/process.py:1568–1586  ·  view source on GitHub ↗

Writes to the memory of the process. @note: Page permissions may be changed temporarily while writing. @see: L{poke} @type lpBaseAddress: int @param lpBaseAddress: Memory address to begin writing. @type lpBuffer: str @param lpBuffer: Byt

(self, lpBaseAddress, lpBuffer)

Source from the content-addressed store, hash-verified

1566 return data
1567
1568 def write(self, lpBaseAddress, lpBuffer):
1569 """
1570 Writes to the memory of the process.
1571
1572 @note: Page permissions may be changed temporarily while writing.
1573
1574 @see: L{poke}
1575
1576 @type lpBaseAddress: int
1577 @param lpBaseAddress: Memory address to begin writing.
1578
1579 @type lpBuffer: str
1580 @param lpBuffer: Bytes to write.
1581
1582 @raise WindowsError: On error an exception is raised.
1583 """
1584 r = self.poke(lpBaseAddress, lpBuffer)
1585 if r != len(lpBuffer):
1586 raise ctypes.WinError()
1587
1588 def read_char(self, lpBaseAddress):
1589 """

Callers 14

__write_c_typeMethod · 0.95
write_charMethod · 0.95
__restore_mbiMethod · 0.95
inject_codeMethod · 0.95
inject_dllMethod · 0.95
do_enable_guiFunction · 0.45
activate_matplotlibFunction · 0.45
process_command_lineFunction · 0.45
loop_in_threadFunction · 0.45
write_memoryMethod · 0.45
__set_bpMethod · 0.45

Calls 1

pokeMethod · 0.95

Tested by

no test coverage detected