IDA Domain Python API
ida_domain.InstructionsIterator Class Reference

Inherits object.

Public Member Functions

def __init__ (self, database, start_ea, end_ea)
 
def get_first (self)
 
def get_next (self)
 
"Iterator[insn_t]" __iter__ (self)
 

Properties

 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
 

Detailed Description

Iterator for instructions within a specified address range.

Constructor & Destructor Documentation

◆ __init__()

def ida_domain.InstructionsIterator.__init__ (   self,
  database,
  start_ea,
  end_ea 
)
__init__(self, database, start_ea, end_ea) -> InstructionsIterator
Constructs an instructions iterator for the specified range.

:param database: Reference to the active IDA database.
:param start_ea: Start address of the range.
:param end_ea: End address of the range.

Member Function Documentation

◆ __iter__()

"Iterator[insn_t]" ida_domain.InstructionsIterator.__iter__ (   self)
__iter__(self) -> Iterator[insn_t]

◆ get_first()

def ida_domain.InstructionsIterator.get_first (   self)
get_first(self) -> BoolInsntPair
Retrieves the first instruction in the range.

:return: A pair <bool, insn_t>. If decoding fails, the bool is false.

◆ get_next()

def ida_domain.InstructionsIterator.get_next (   self)
get_next(self) -> BoolInsntPair
Retrieves the next instruction in the range.

:return: A pair <bool, insn_t>. If decoding fails, the bool is false.

Property Documentation

◆ thisown

ida_domain.InstructionsIterator.thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
static