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

Method __next__

python/function.py:256–262  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

254 return BasicBlockList(self._function)
255
256 def __next__(self) -> 'basicblock.BasicBlock':
257 if self._n >= len(self):
258 raise StopIteration
259 block = core.BNNewBasicBlockReference(self._blocks[self._n])
260 assert block is not None, "core.BNNewBasicBlockReference returned None"
261 self._n += 1
262 return self._function._instantiate_block(block)
263
264 @overload
265 def __getitem__(self, i: int) -> 'basicblock.BasicBlock': ...

Callers

nothing calls this directly

Calls 1

_instantiate_blockMethod · 0.45

Tested by

no test coverage detected