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

Method __iter__

python/workflow.py:227–238  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

225 core.BNFreeWorkflowList(workflows, count.value)
226
227 def __iter__(self):
228 binaryninja._init_plugins()
229 count = ctypes.c_ulonglong()
230 workflows = core.BNGetWorkflowList(count)
231 assert workflows is not None, "core.BNGetWorkflowList returned None"
232 try:
233 for i in range(0, count.value):
234 handle = core.BNNewWorkflowReference(workflows[i])
235 assert handle is not None, "core.BNNewWorkflowReference returned None"
236 yield Workflow(handle=handle)
237 finally:
238 core.BNFreeWorkflowList(workflows, count.value)
239
240 def __getitem__(self, value):
241 binaryninja._init_plugins()

Callers

nothing calls this directly

Calls 1

WorkflowClass · 0.70

Tested by

no test coverage detected