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

Method apply_to_flow_graph

rust/src/render_layer.rs:89–96  ·  view source on GitHub ↗

Apply this Render Layer to a Flow Graph.

(&self, graph: &mut FlowGraph)

Source from the content-addressed store, hash-verified

87pub trait RenderLayer: Sized {
88 /// Apply this Render Layer to a Flow Graph.
89 fn apply_to_flow_graph(&self, graph: &mut FlowGraph) {
90 for node in &graph.nodes() {
91 if let Some(block) = node.basic_block(NativeBlock::new()) {
92 let new_lines = self.apply_to_block(&block, node.lines().to_vec());
93 node.set_lines(new_lines);
94 }
95 }
96 }
97
98 /// Apply this Render Layer to the lines produced by a LinearViewObject for rendering in Linear View.
99 fn apply_to_linear_object(

Callers

nothing calls this directly

Implementers 2

test_render_layer_registerrust/tests/render_layer.rs
test_render_layer_linear_viewrust/tests/render_layer.rs

Calls 6

to_vecMethod · 0.80
set_linesMethod · 0.80
nodesMethod · 0.45
basic_blockMethod · 0.45
apply_to_blockMethod · 0.45
linesMethod · 0.45

Tested by

no test coverage detected