Gets the disassembly instruction text only, with no annotations.
(&self, addr: u64)
| 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)> { |
no outgoing calls
no test coverage detected