``get_functions_containing`` returns a list of :py:class:`~binaryninja.function.Function` objects which contain the given address. :param int addr: virtual address to query. :rtype: list of :py:class:`~binaryninja.function.Function` objects
(self, addr: int, plat: Optional['_platform.Platform'] = None)
| 5077 | return result |
| 5078 | |
| 5079 | def get_functions_containing(self, addr: int, |
| 5080 | plat: Optional['_platform.Platform'] = None) -> List['_function.Function']: |
| 5081 | """ |
| 5082 | ``get_functions_containing`` returns a list of :py:class:`~binaryninja.function.Function` objects which contain the given address. |
| 5083 | |
| 5084 | :param int addr: virtual address to query. |
| 5085 | :rtype: list of :py:class:`~binaryninja.function.Function` objects |
| 5086 | """ |
| 5087 | count = ctypes.c_ulonglong(0) |
| 5088 | funcs = core.BNGetAnalysisFunctionsContainingAddress(self.handle, addr, count) |
| 5089 | assert funcs is not None, "core.BNGetAnalysisFunctionsContainingAddress returned None" |
| 5090 | result = [] |
| 5091 | try: |
| 5092 | for i in range(0, count.value): |
| 5093 | result.append(_function.Function(self, core.BNNewFunctionReference(funcs[i]))) |
| 5094 | if plat is not None: |
| 5095 | result = [func for func in result if func.platform == plat] |
| 5096 | return result |
| 5097 | finally: |
| 5098 | core.BNFreeFunctionList(funcs, count.value) |
| 5099 | |
| 5100 | def get_functions_by_name( |
| 5101 | self, name: str, plat: Optional['_platform.Platform'] = None, ordered_filter: Optional[List[SymbolType]] = None |
no test coverage detected