MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / components

Method components

python/component.py:179–199  ·  view source on GitHub ↗

``components`` is an iterator for all Components contained within this Component :return: A list of components :Example: >>> for subcomp in component.components: ... print(repr(component))

(self)

Source from the content-addressed store, hash-verified

177
178 @property
179 def components(self) -> List['Component']:
180 """
181 ``components`` is an iterator for all Components contained within this Component
182
183 :return: A list of components
184 :Example:
185
186 >>> for subcomp in component.components:
187 ... print(repr(component))
188 """
189
190 count = ctypes.c_ulonglong(0)
191 bn_components = core.BNComponentGetContainedComponents(self.handle, count)
192 components = []
193 try:
194 for i in range(count.value):
195 components.append(Component(core.BNNewComponentReference(bn_components[i])))
196 finally:
197 core.BNFreeComponents(bn_components, count.value)
198
199 return components
200
201 @property
202 def function_list(self) -> List['function.Function']:

Callers

nothing calls this directly

Calls 2

ComponentClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected