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

Method __getitem__

windows/debug/breakpoints.py:176–192  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

174 self.x = x
175
176 def __getitem__(self, x):
177 if isinstance(x, basestring):
178 x = self.name_map[x]
179 # import pdb;pdb.set_trace()
180 argtype = self.parameters_type[x]
181 value = self.extractor.get_arg(x, self.x.current_process, self.x.current_thread)
182 rt = windows.remotectypes.transform_type_to_remote32bits(argtype)
183 if issubclass(rt, windows.remotectypes.RemoteValue):
184 t = rt(value, self.x.current_process)
185 else:
186 t = rt(value)
187 if not hasattr(t, "contents"):
188 try:
189 t = t.value
190 except AttributeError:
191 pass
192 return t
193
194 def __setitem__(self, x, value):
195 if isinstance(x, basestring):

Callers

nothing calls this directly

Calls 1

get_argMethod · 0.45

Tested by

no test coverage detected