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

Method apply_to_block

rust/src/render_layer.rs:276–287  ·  view source on GitHub ↗

Apply this Render Layer to all IL blocks and disassembly blocks. If not implemented this will handle calling the view specific apply functions: - [`RenderLayer::apply_to_disassembly_block`] - [`RenderLayer::apply_to_llil_block`] - [`RenderLayer::apply_to_mlil_block`] - [`RenderLayer::apply_to_hlil_block`] Modify the lines to change the presentation of the block.

(
        &self,
        block: &BasicBlock<NativeBlock>,
        lines: Vec<DisassemblyTextLine>,
    )

Source from the content-addressed store, hash-verified

274 ///
275 /// Modify the lines to change the presentation of the block.
276 fn apply_to_block(
277 &self,
278 block: &BasicBlock<NativeBlock>,
279 lines: Vec<DisassemblyTextLine>,
280 ) -> Vec<DisassemblyTextLine> {
281 match block.block_type() {
282 BasicBlockType::Native => self.apply_to_disassembly_block(block, lines),
283 BasicBlockType::LowLevelIL => self.apply_to_llil_block(block, lines),
284 BasicBlockType::MediumLevelIL => self.apply_to_mlil_block(block, lines),
285 BasicBlockType::HighLevelIL => self.apply_to_hlil_block(block, lines),
286 }
287 }
288}
289
290#[repr(transparent)]

Callers 2

apply_to_flow_graphMethod · 0.45

Implementers 2

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

Calls 5

block_typeMethod · 0.80
apply_to_llil_blockMethod · 0.80
apply_to_mlil_blockMethod · 0.80
apply_to_hlil_blockMethod · 0.80

Tested by

no test coverage detected