IDA Domain Python API
ida_domain.Types Class Reference

Inherits object.

Public Member Functions

def __init__ (self, database)
 
def get_type_name (self, ea)
 
def apply_named_type (self, ea, type)
 
def get_all (self)
 

Properties

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

Detailed Description

Provides access to type information and manipulation in the IDA database.

Constructor & Destructor Documentation

◆ __init__()

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

:param database: Reference to the active IDA database.

Member Function Documentation

◆ apply_named_type()

def ida_domain.Types.apply_named_type (   self,
  ea,
  type 
)
apply_named_type(self, ea, type) -> bool
Applies a named type to the given address.

:param ea: The effective address.
:param type: The name of the type to apply.
:return: True if the type was applied successfully, false otherwise.

◆ get_all()

def ida_domain.Types.get_all (   self)
get_all(self) -> TypesIterator
Retrieves an iterator over all user-defined types in the database.

:return: A TypesIterator instance.

◆ get_type_name()

def ida_domain.Types.get_type_name (   self,
  ea 
)
get_type_name(self, ea) -> BoolStringPair
Retrieves the type information of the item at the given address.

:param ea: The effective address.
:return: A pair (success, string representing the type name). If not found, success is false.

Property Documentation

◆ thisown

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