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

Method instruction_text

rust/src/disassembly.rs:1141–1155  ·  view source on GitHub ↗

Gets the disassembly instruction text only, with no annotations.

(&self, addr: u64)

Source from the content-addressed store, hash-verified

1139
1140 /// Gets the disassembly instruction text only, with no annotations.
1141 pub fn instruction_text(&self, addr: u64) -> Option<(Array<DisassemblyTextLine>, usize)> {
1142 let mut count = 0;
1143 let mut length = 0;
1144 let mut lines: *mut BNDisassemblyTextLine = ptr::null_mut();
1145 let result = unsafe {
1146 BNGetDisassemblyTextRendererInstructionText(
1147 self.handle.as_ptr(),
1148 addr,
1149 &mut length,
1150 &mut lines,
1151 &mut count,
1152 )
1153 };
1154 result.then(|| (unsafe { Array::new(lines, count, ()) }, length))
1155 }
1156
1157 // Gets the disassembly text as it would appear in the UI, with annotations.
1158 pub fn disassembly_text(&self, addr: u64) -> Option<(Array<DisassemblyTextLine>, usize)> {

Callers 2

disassembleFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected