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

Method get_dword_from_offset

pythonmemorymodule/pefile.py:6817–6823  ·  view source on GitHub ↗

Return the double word value at the given file offset. (little endian)

(self, offset)

Source from the content-addressed store, hash-verified

6815 return None
6816
6817 def get_dword_from_offset(self, offset):
6818 """Return the double word value at the given file offset. (little endian)"""
6819
6820 if offset + 4 > len(self.__data__):
6821 return None
6822
6823 return self.get_dword_from_data(self.__data__[offset : offset + 4], 0)
6824
6825 def set_dword_at_rva(self, rva, dword):
6826 """Set the double word value at the file offset corresponding to the given RVA."""

Callers

nothing calls this directly

Calls 1

get_dword_from_dataMethod · 0.95

Tested by

no test coverage detected