MCPcopy Create free account
hub / github.com/qilingframework/qiling / save_to

Method save_to

qiling/os/struct.py:31–41  ·  view source on GitHub ↗

Store structure contents to a specified memory address. Args: mem: memory manager instance address: destination address

(self, mem: QlMemoryManager, address: int)

Source from the content-addressed store, hash-verified

29 """
30
31 def save_to(self, mem: QlMemoryManager, address: int) -> None:
32 """Store structure contents to a specified memory address.
33
34 Args:
35 mem: memory manager instance
36 address: destination address
37 """
38
39 data = bytes(self)
40
41 mem.write(address, data)
42
43 @classmethod
44 def load_from(cls, mem: QlMemoryManager, address: int):

Callers 15

refMethod · 0.80
__init__Method · 0.80
_QuerySystemInformationFunction · 0.80
hook_ZwQueryObjectFunction · 0.80
hook_gethostbynameFunction · 0.80
hook_GetCursorPosFunction · 0.80
install_protocolMethod · 0.80
notify_protocolMethod · 0.80
installMethod · 0.80
invoke_swsmiMethod · 0.80

Calls 1

writeMethod · 0.45

Tested by 1

test_save_toMethod · 0.64