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

Method lines

python/languagerepresentation.py:199–212  ·  view source on GitHub ↗

The list of lines in the output (read-only).

(self)

Source from the content-addressed store, hash-verified

197
198 @property
199 def lines(self) -> List['function.DisassemblyTextLine']:
200 """The list of lines in the output (read-only)."""
201 count = ctypes.c_ulonglong()
202 lines = core.BNHighLevelILTokenEmitterGetLines(self.handle, count)
203 result = []
204 if lines is not None:
205 result = []
206 for i in range(0, count.value):
207 addr = lines[i].addr
208 color = highlight.HighlightColor._from_core_struct(lines[i].highlight)
209 tokens = function.InstructionTextToken._from_core_struct(lines[i].tokens, lines[i].count)
210 result.append(function.DisassemblyTextLine(tokens, addr, color=color))
211 core.BNFreeDisassemblyTextLines(lines, count.value)
212 return result
213
214 @property
215 def brace_requirement(self) -> BraceRequirement:

Callers

nothing calls this directly

Calls 3

DisassemblyTextLineMethod · 0.80
_from_core_structMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected