![]() |
IDA Domain Python API
|
Inherits object.
Public Member Functions | |
def | __init__ (self, database) |
def | is_valid (self, insn) |
def | decode (self, ea) |
def | get_disassembly (self, insn) |
def | get_between (self, start, end) |
Properties | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
Provides access to instruction-related operations.
def ida_domain.Instructions.__init__ | ( | self, | |
database | |||
) |
__init__(self, database) -> Instructions Constructs an instructions handler for the given database. :param database: Reference to the active IDA database.
def ida_domain.Instructions.decode | ( | self, | |
ea | |||
) |
decode(self, ea) -> BoolInsntPair Decodes the instruction at the specified address. :param ea: The effective address of the instruction. :return: A pair <bool, insn_t>. The bool indicates success; if false, the instruction is invalid.
def ida_domain.Instructions.get_between | ( | self, | |
start, | |||
end | |||
) |
get_between(self, start, end) -> InstructionsIterator Retrieves instructions between the specified addresses. :param start: Start of the address range. :param end: End of the address range. :return: An instruction iterator.
def ida_domain.Instructions.get_disassembly | ( | self, | |
insn | |||
) |
get_disassembly(self, insn) -> BoolStringPair Retrieves the disassembled string representation of the given instruction. :param insn: The instruction to disassemble. :return: A pair <bool, string>. If disassembly fails, the bool is false.
def ida_domain.Instructions.is_valid | ( | self, | |
insn | |||
) |
is_valid(self, insn) -> bool Checks if the given instruction is valid. :param insn: The instruction to validate. :return: true if the instruction is valid, false otherwise.
|
static |