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

Method callees

python/function.py:3073–3089  ·  view source on GitHub ↗

``callees`` returns a list of functions that this function calls This does not include the address of those calls, rather just the function objects themselves. Use :py:meth:`call_sites` to identify the location of these calls. :return: List of Functions that this function calls :rtype: lis

(self)

Source from the content-addressed store, hash-verified

3071
3072 @property
3073 def callees(self) -> List['Function']:
3074 """
3075 ``callees`` returns a list of functions that this function calls
3076 This does not include the address of those calls, rather just the function objects themselves. Use :py:meth:`call_sites` to identify the location of these calls.
3077
3078 :return: List of Functions that this function calls
3079 :rtype: list(Function)
3080 """
3081 called = []
3082 for callee_addr in self.callee_addresses:
3083 # a second argument to get_function_at() can filter callees whose platform matchers caller
3084 # good when two functions with different arch's start at same address (rare polyglot code)
3085 # bad for ARM/Thumb (common)
3086 func = self.view.get_function_at(callee_addr)
3087 if func is not None:
3088 called.append(func)
3089 return called
3090
3091 @property
3092 def callee_addresses(self) -> List[int]:

Callers

nothing calls this directly

Calls 2

get_function_atMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected