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

Method __iter__

python/renderlayer.py:35–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33
34class _RenderLayerMetaclass(type):
35 def __iter__(self):
36 binaryninja._init_plugins()
37 count = ctypes.c_ulonglong()
38 instances = core.BNGetRenderLayerList(count)
39 try:
40 for i in range(0, count.value):
41 yield self._handle_to_instance(instances[i])
42 finally:
43 core.BNFreeRenderLayerList(instances)
44
45 def __getitem__(self, value):
46 binaryninja._init_plugins()

Callers

nothing calls this directly

Calls 1

_handle_to_instanceMethod · 0.95

Tested by

no test coverage detected