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

Method set_data_bytes

pythonmemorymodule/pefile.py:6971–6975  ·  view source on GitHub ↗
(self, offset: int, data: bytes)

Source from the content-addressed store, hash-verified

6969 return True
6970
6971 def set_data_bytes(self, offset: int, data: bytes):
6972 if not isinstance(self.__data__, bytearray):
6973 self.__data__ = bytearray(self.__data__)
6974
6975 self.__data__[offset : offset + len(data)] = data
6976
6977 def merge_modified_section_data(self):
6978 """Update the PE image content with any individual section data that has been

Callers 2

set_bytes_at_offsetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected