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

Method set_user_indirect_branches

python/function.py:2254–2264  ·  view source on GitHub ↗
(
	    self, source: int, branches: List[Tuple['architecture.Architecture', int]],
	    source_arch: Optional['architecture.Architecture'] = None
	)

Source from the content-addressed store, hash-verified

2252 core.BNSetAutoIndirectBranches(self.handle, source_arch.handle, source, branch_list, len(branches))
2253
2254 def set_user_indirect_branches(
2255 self, source: int, branches: List[Tuple['architecture.Architecture', int]],
2256 source_arch: Optional['architecture.Architecture'] = None
2257 ) -> None:
2258 if source_arch is None:
2259 source_arch = self.arch
2260 branch_list = (core.BNArchitectureAndAddress * len(branches))()
2261 for i in range(len(branches)):
2262 branch_list[i].arch = branches[i][0].handle
2263 branch_list[i].address = branches[i][1]
2264 core.BNSetUserIndirectBranches(self.handle, source_arch.handle, source, branch_list, len(branches))
2265
2266 def get_indirect_branches_at(
2267 self, addr: int, arch: Optional['architecture.Architecture'] = None

Callers 1

find_jump_tableFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected