Types
types
Classes:
-
TypeKind
–Type category enumeration.
-
Types
–Provides access to type information and manipulation in the IDA database.
TypeKind
Types
Types(database: 'Database')
Provides access to type information and manipulation in the IDA database.
Constructs a types handler for the given database.
Args: database: Reference to the active IDA database.
Methods:
-
apply_named_type
–Applies a named type to the given address.
-
get_all
–Retrieves a generator over all types in the specified type library.
-
get_name_at
–Retrieves the type information of the item at the given address.
-
get_names
–Retrieves a generator over all names in the specified type library.
Attributes:
m_database
instance-attribute
m_database = database
apply_named_type
apply_named_type(ea: 'ea_t', type: 'str')
Applies a named type to the given address.
Args: ea: The effective address. type: The name of the type to apply.
Returns: True if the type was applied successfully, false otherwise.
get_all
Retrieves a generator over all types in the specified type library.
get_name_at
get_name_at(ea: 'ea_t') -> str | None
Retrieves the type information of the item at the given address.
Args: ea: The effective address.
Returns: The type name or None if it does not exist.
get_names
get_names(type_library: str = '')
Retrieves a generator over all names in the specified type library.