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

Method get_next_linear_disassembly_lines

python/binaryview.py:7589–7614  ·  view source on GitHub ↗

``get_next_linear_disassembly_lines`` retrieves a list of :py:class:`~binaryninja.lineardisassembly.LinearDisassemblyLine` objects for the next disassembly lines, and updates the LinearViewCursor passed in. This function can be called repeatedly to get more lines of linear disassembly. :pa

(
	    self, pos: 'lineardisassembly.LinearViewCursor'
	)

Source from the content-addressed store, hash-verified

7587 return result
7588
7589 def get_next_linear_disassembly_lines(
7590 self, pos: 'lineardisassembly.LinearViewCursor'
7591 ) -> List['lineardisassembly.LinearDisassemblyLine']:
7592 """
7593 ``get_next_linear_disassembly_lines`` retrieves a list of :py:class:`~binaryninja.lineardisassembly.LinearDisassemblyLine` objects for the
7594 next disassembly lines, and updates the LinearViewCursor passed in. This function can be called
7595 repeatedly to get more lines of linear disassembly.
7596
7597 :param LinearViewCursor pos: Position to start retrieving linear disassembly lines from
7598 :return: a list of :py:class:`~binaryninja.lineardisassembly.LinearDisassemblyLine` objects for the next lines.
7599 :Example:
7600
7601 >>> settings = DisassemblySettings()
7602 >>> pos = bv.get_linear_disassembly_position_at(0x10001483, settings)
7603 >>> bv.get_next_linear_disassembly_lines(pos)
7604 [<0x10001483: xor eax, eax {0x0}>, <0x10001485: inc eax {0x1}>, ... , <0x10001488: >]
7605 >>> bv.get_next_linear_disassembly_lines(pos)
7606 [<0x10001488: push dword [ebp+0x10 {arg_c}]>, ... , <0x1000149a: >]
7607 >>>
7608 """
7609 result = []
7610 while len(result) == 0:
7611 result = pos.lines
7612 if not pos.next():
7613 return result
7614 return result
7615
7616 def get_linear_disassembly(
7617 self, settings: Optional['_function.DisassemblySettings'] = None

Callers 1

__iter__Method · 0.45

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected