IDA Domain Python API
ida_domain.Bytes Class Reference

Inherits object.

Public Member Functions

def __init__ (self, database)
 
def get_byte (self, ea)
 
def get_word (self, ea)
 
def get_dword (self, ea)
 
def get_qword (self, ea)
 
def get_float (self, ea)
 
def get_double (self, ea)
 
def get_disassembly (self, ea)
 

Properties

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

Detailed Description

Handles operations related to raw data access from the IDA database.

Constructor & Destructor Documentation

◆ __init__()

def ida_domain.Bytes.__init__ (   self,
  database 
)
__init__(self, database) -> Bytes
Constructs a bytes handler for the given database.

:param database: Reference to the active IDA database.

Member Function Documentation

◆ get_byte()

def ida_domain.Bytes.get_byte (   self,
  ea 
)
get_byte(self, ea) -> BoolUint8Pair
Retrieves a byte at the specified address.

:param ea: The effective address.
:return: A pair of (success flag, value). If the flag is false, the value is undefined.

◆ get_disassembly()

def ida_domain.Bytes.get_disassembly (   self,
  ea 
)
get_disassembly(self, ea) -> BoolStringPair
Retrieves the disassembly text at a specified address.

:param ea: The effective address.
:return: A pair of (success flag, disassembly string). If the flag is false, the string is undefined.

◆ get_double()

def ida_domain.Bytes.get_double (   self,
  ea 
)
get_double(self, ea) -> BoolDoublePair
Retrieves a double (floating-point) value at the specified address.

:param ea: The effective address.
:return: A pair of (success flag, value). If the flag is false, the value is undefined.

◆ get_dword()

def ida_domain.Bytes.get_dword (   self,
  ea 
)
get_dword(self, ea) -> BoolUint32Pair
Retrieves a double word (4 bytes) at the specified address.

:param ea: The effective address.
:return: A pair of (success flag, value). If the flag is false, the value is undefined.

◆ get_float()

def ida_domain.Bytes.get_float (   self,
  ea 
)
get_float(self, ea) -> BoolFloatPair
Retrieves a float value at the specified address.

:param ea: The effective address.
:return: A pair of (success flag, value). If the flag is false, the value is undefined.

◆ get_qword()

def ida_domain.Bytes.get_qword (   self,
  ea 
)
get_qword(self, ea) -> BoolUint64Pair
Retrieves a quad word (8 bytes) at the specified address.

:param ea: The effective address.
:return: A pair of (success flag, value). If the flag is false, the value is undefined.

◆ get_word()

def ida_domain.Bytes.get_word (   self,
  ea 
)
get_word(self, ea) -> BoolUint16Pair
Retrieves a word (2 bytes) at the specified address.

:param ea: The effective address.
:return: A pair of (success flag, value). If the flag is false, the value is undefined.

Property Documentation

◆ thisown

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