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

Method lines

python/flowgraph.py:197–214  ·  view source on GitHub ↗

Flow graph block list of text lines

(self)

Source from the content-addressed store, hash-verified

195
196 @property
197 def lines(self):
198 """Flow graph block list of text lines"""
199 count = ctypes.c_ulonglong()
200 lines = core.BNGetFlowGraphNodeLines(self.handle, count)
201 assert lines is not None, "core.BNGetFlowGraphNodeLines returned None"
202 block = self.basic_block
203 result = []
204 for i in range(0, count.value):
205 addr = lines[i].addr
206 if (lines[i].instrIndex != 0xffffffffffffffff) and (block is not None) and hasattr(block, 'il_function'):
207 il_instr = block.il_function[lines[i].instrIndex]
208 else:
209 il_instr = None
210 color = highlight.HighlightColor._from_core_struct(lines[i].highlight)
211 tokens = function.InstructionTextToken._from_core_struct(lines[i].tokens, lines[i].count)
212 result.append(function.DisassemblyTextLine(tokens, addr, il_instr, color))
213 core.BNFreeDisassemblyTextLines(lines, count.value)
214 return result
215
216 @lines.setter
217 def lines(self, lines):

Callers

nothing calls this directly

Calls 7

_to_core_structMethod · 0.95
DisassemblyTextLineMethod · 0.80
InstructionTextTokenMethod · 0.80
_get_core_structMethod · 0.80
_from_core_structMethod · 0.45
appendMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected