Latest available version: IDA and decompilers v8.4.240320sp1 see all releases
Hex-Rays logo State-of-the-art binary code analysis tools
email icon
Local types information and manipulation helpers

Functions

idaman tid_t ida_export get_named_type_tid (const char *name)
 Get named local type TID. More...
 
idaman bool ida_export get_tid_name (qstring *out, tid_t tid)
 Get a type name for the specified TID. More...
 
idaman uint32 ida_export get_tid_ordinal (tid_t tid)
 Get type ordinal number for TID. More...
 
idaman ssize_t ida_export get_udm_by_fullname (udm_t *udm, const char *fullname)
 Get udt member by full name. More...
 
tid_t create_enum_type (const char *enum_name, enum_type_data_t &ei, int enum_width, type_sign_t sign, bool convert_to_bitmask, const char *enum_cmt=nullptr)
 Create type enum. More...
 
tid_t edm_t::get_tid () const
 

Detailed Description

Function Documentation

◆ get_named_type_tid()

idaman tid_t ida_export get_named_type_tid ( const char *  name)

Get named local type TID.

Parameters
nametype name
Returns
TID or BADADDR

◆ get_tid_name()

idaman bool ida_export get_tid_name ( qstring out,
tid_t  tid 
)

Get a type name for the specified TID.

Parameters
tidtype TID
[out]outtype name
Returns
true if there is type with TID
Note
this function is the inverse to get_named_type_tid

◆ get_tid_ordinal()

idaman uint32 ida_export get_tid_ordinal ( tid_t  tid)

Get type ordinal number for TID.

Parameters
tidtype/enum constant/udt member TID
Returns
type ordinal number or 0

◆ get_udm_by_fullname()

idaman ssize_t ida_export get_udm_by_fullname ( udm_t udm,
const char *  fullname 
)

Get udt member by full name.

Parameters
[out]udmmember, can be NULL
fullnameudt member name in format <udt name>.<member name>
Returns
member index into udt_type_data_t or -1

◆ create_enum_type()

tid_t create_enum_type ( const char *  enum_name,
enum_type_data_t ei,
int  enum_width,
type_sign_t  sign,
bool  convert_to_bitmask,
const char *  enum_cmt = nullptr 
)
inline

Create type enum.

Parameters
enum_nametype name
eienum type data
enum_widththe width of an enum element allowed values: 0 (unspecified),1,2,4,8,16,32,64
signenum sign
convert_to_bitmasktry convert enum to bitmask enum
enum_cmtenum type comment
Returns
enum TID