``get_basic_blocks_at`` get a list of :py:class:`~binaryninja.basicblock.BasicBlock` objects which exist at the provided virtual address. :param int addr: virtual address of BasicBlock desired :return: a list of :py:class:`~binaryninja.basicblock.BasicBlock` objects :rtype: list(BasicBlock
(self, addr: int)
| 5195 | return _function.Function(self, func) |
| 5196 | |
| 5197 | def get_basic_blocks_at(self, addr: int) -> List['basicblock.BasicBlock']: |
| 5198 | """ |
| 5199 | ``get_basic_blocks_at`` get a list of :py:class:`~binaryninja.basicblock.BasicBlock` objects which exist at the provided virtual address. |
| 5200 | |
| 5201 | :param int addr: virtual address of BasicBlock desired |
| 5202 | :return: a list of :py:class:`~binaryninja.basicblock.BasicBlock` objects |
| 5203 | :rtype: list(BasicBlock) |
| 5204 | """ |
| 5205 | count = ctypes.c_ulonglong(0) |
| 5206 | blocks = core.BNGetBasicBlocksForAddress(self.handle, addr, count) |
| 5207 | assert blocks is not None, "core.BNGetBasicBlocksForAddress returned None" |
| 5208 | result = [] |
| 5209 | try: |
| 5210 | for i in range(0, count.value): |
| 5211 | block_handle = core.BNNewBasicBlockReference(blocks[i]) |
| 5212 | assert block_handle is not None, "core.BNNewBasicBlockReference is None" |
| 5213 | result.append(basicblock.BasicBlock(block_handle, self)) |
| 5214 | return result |
| 5215 | finally: |
| 5216 | core.BNFreeBasicBlockList(blocks, count.value) |
| 5217 | |
| 5218 | def get_basic_blocks_starting_at(self, addr: int) -> List['basicblock.BasicBlock']: |
| 5219 | """ |
no test coverage detected