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

Method set_lines

rust/src/flowgraph.rs:213–225  ·  view source on GitHub ↗
(&self, lines: impl IntoIterator<Item = DisassemblyTextLine>)

Source from the content-addressed store, hash-verified

211 }
212
213 pub fn set_lines(&self, lines: impl IntoIterator<Item = DisassemblyTextLine>) {
214 // NOTE: This will create allocations and increment tag refs, we must call DisassemblyTextLine::free_raw
215 let mut raw_lines: Vec<BNDisassemblyTextLine> = lines
216 .into_iter()
217 .map(DisassemblyTextLine::into_raw)
218 .collect();
219 unsafe {
220 BNSetFlowGraphNodeLines(self.handle, raw_lines.as_mut_ptr(), raw_lines.len());
221 for raw_line in raw_lines {
222 DisassemblyTextLine::free_raw(raw_line);
223 }
224 }
225 }
226
227 /// Returns the graph position of the node in X, Y form.
228 pub fn position(&self) -> (i32, i32) {

Callers 4

apply_to_flow_graphMethod · 0.80
test_graphFunction · 0.80
process_treeFunction · 0.80
dump_dwarfFunction · 0.80

Calls 3

mapMethod · 0.80
into_iterMethod · 0.45
lenMethod · 0.45

Tested by 1

test_graphFunction · 0.64