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

Method get_word_from_offset

pythonmemorymodule/pefile.py:6867–6873  ·  view source on GitHub ↗

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

(self, offset)

Source from the content-addressed store, hash-verified

6865 return None
6866
6867 def get_word_from_offset(self, offset):
6868 """Return the word value at the given file offset. (little endian)"""
6869
6870 if offset + 2 > len(self.__data__):
6871 return None
6872
6873 return self.get_word_from_data(self.__data__[offset : offset + 2], 0)
6874
6875 def set_word_at_rva(self, rva, word):
6876 """Set the word value at the file offset corresponding to the given RVA."""

Callers

nothing calls this directly

Calls 1

get_word_from_dataMethod · 0.95

Tested by

no test coverage detected