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

Method get_data_from_word

pythonmemorymodule/pefile.py:6837–6839  ·  view source on GitHub ↗

Return a two byte string representing the word value. (little endian).

(self, word)

Source from the content-addressed store, hash-verified

6835 ##
6836
6837 def get_data_from_word(self, word):
6838 """Return a two byte string representing the word value. (little endian)."""
6839 return struct.pack("<H", word)
6840
6841 def get_word_from_data(self, data, offset):
6842 """Convert two bytes of data to a word (little endian)

Callers 2

set_word_at_rvaMethod · 0.95
set_word_at_offsetMethod · 0.95

Calls 1

packMethod · 0.45

Tested by

no test coverage detected