MCPcopy Index your code
hub / github.com/qilingframework/qiling / load_from

Method load_from

qiling/os/struct.py:44–56  ·  view source on GitHub ↗

Construct and populate a structure from saved contents. Args: mem: memory manager instance address: source address Returns: populated structure instance

(cls, mem: QlMemoryManager, address: int)

Source from the content-addressed store, hash-verified

42
43 @classmethod
44 def load_from(cls, mem: QlMemoryManager, address: int):
45 """Construct and populate a structure from saved contents.
46
47 Args:
48 mem: memory manager instance
49 address: source address
50
51 Returns: populated structure instance
52 """
53
54 data = mem.read(address, cls.sizeof())
55
56 return cls.from_buffer(data)
57
58 @classmethod
59 def volatile_ref(cls, mem: QlMemoryManager, address: int):

Callers 15

refMethod · 0.80
io_WriteFunction · 0.80
read_pansi_stringFunction · 0.80
read_punicode_stringFunction · 0.80
__VerifyVersionInfoFunction · 0.80
findMethod · 0.80
get_vendor_tableMethod · 0.80
GetNextHobFunction · 0.80
GetNextGuidHobFunction · 0.80
hook_RegisterFunction · 0.80
hook_GetCapabilitiesFunction · 0.80
ql_syscall_rt_sigactionFunction · 0.80

Calls 2

sizeofMethod · 0.80
readMethod · 0.45

Tested by 1

test_load_fromMethod · 0.64