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

Method read_short

windows/winobject/process.py:322–325  ·  view source on GitHub ↗

Read a ``SHORT`` at ``addr``

(self, addr)

Source from the content-addressed store, hash-verified

320 return struct.unpack("<B", self.read_memory(addr, sizeof_char))[0]
321
322 def read_short(self, addr):
323 """Read a ``SHORT`` at ``addr``"""
324 sizeof_short = sizeof(ctypes.c_short)
325 return struct.unpack("<H", self.read_memory(addr, sizeof_short))[0]
326
327 def read_dword(self, addr):
328 """Read a ``DWORD`` at ``addr``"""

Callers

nothing calls this directly

Calls 2

unpackMethod · 0.45
read_memoryMethod · 0.45

Tested by

no test coverage detected