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

Method writeParams

qiling/os/fcall.py:92–107  ·  view source on GitHub ↗

Walk the function parameters list and set their values. Args: params: a sequence of 2-tuples containing parameters types and values

(self, params: Sequence[Tuple[Any, int]])

Source from the content-addressed store, hash-verified

90 return values
91
92 def writeParams(self, params: Sequence[Tuple[Any, int]]) -> None:
93 """Walk the function parameters list and set their values.
94
95 Args:
96 params: a sequence of 2-tuples containing parameters types and values
97 """
98
99 default = self.accessors[PARAM_INTN]
100
101 si = 0
102
103 for typ, val in params:
104 _, write, nslots = self.accessors.get(typ, default)
105
106 write(si, val)
107 si += nslots
108
109 def __count_slots(self, ptypes: Iterable[Any]) -> int:
110 default = self.accessors[PARAM_INTN]

Callers 7

call_nativeMethod · 0.95
io_WriteFunction · 0.80
ioctlFunction · 0.80
hook_IoCreateDriverFunction · 0.80
stage_call_siteMethod · 0.80
sality.pyFile · 0.80

Calls 1

getMethod · 0.45

Tested by 1