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

Method _layout

python/flowgraph.py:947–956  ·  view source on GitHub ↗
(self, ctxt, graph_handle: core.BNFlowGraphHandle, node_handles: 'ctypes.pointer[core.BNFlowGraphNodeHandle]', node_handle_count: int)

Source from the content-addressed store, hash-verified

945 self.handle = core.BNRegisterFlowGraphLayout(name, self._cb)
946
947 def _layout(self, ctxt, graph_handle: core.BNFlowGraphHandle, node_handles: 'ctypes.pointer[core.BNFlowGraphNodeHandle]', node_handle_count: int) -> bool:
948 try:
949 graph = FlowGraph(handle=graph_handle)
950 nodes = []
951 for i in range(node_handle_count):
952 nodes.append(FlowGraphNode(graph=graph, handle=node_handles[i]))
953 return self.layout(graph, nodes)
954 except:
955 log_error(traceback.format_exc())
956 return False
957
958 def layout(self, graph: FlowGraph, nodes: List[FlowGraphNode]) -> bool:
959 return False

Callers

nothing calls this directly

Calls 5

layoutMethod · 0.95
log_errorFunction · 0.85
FlowGraphClass · 0.70
FlowGraphNodeClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected