IDA C++ SDK 9.2
Loading...
Searching...
No Matches
data_type_t Struct Reference

Information about a data type. More...

#include <bytes.hpp>

Public Member Functions

bool is_present_in_menus () const
 Should this type be shown in UI menus.
 bool (idaapi *may_create_at)(void *ud
 May create data?
 asize_t (idaapi *calc_item_size)(void *ud
 This function is used to determine size of the (possible) item at 'ea'.
 DECLARE_COMPARISONS (data_type_t)

Public Attributes

int cbsize
 size of this structure
voidud
 user-defined data to be passed to callbacks
int props
 properties
const char * name
 name of the data type. must be unique
const char * menu_name
 Visible data type name to use in menus if nullptr, no menu item will be created.
const char * hotkey
 Hotkey for the corresponding menu item if nullptr, no hotkey will be associated with the menu item.
const char * asm_keyword
 keyword to use for this type in the assembly if nullptr, the data type cannot be used in the listing it can still be used in cpuregs window
asize_t value_size
 size of the value in bytes
ea_t ea
ea_t size_t nbytes
ea_t asize_t maxsize

Detailed Description

Information about a data type.

Member Function Documentation

◆ is_present_in_menus()

bool data_type_t::is_present_in_menus ( ) const
inline

Should this type be shown in UI menus.

Returns
success

◆ bool()

data_type_t::bool ( idaapi * may_create_at)

May create data?

nullptr means always may

Parameters
uduser-defined data
eaaddress of the future item
nbytessize of the future item

◆ asize_t()

data_type_t::asize_t ( idaapi * calc_item_size)

This function is used to determine size of the (possible) item at 'ea'.

This callback is required only for varsize datatypes.

Parameters
uduser-defined data
eaaddress of the item
maxsizemaximal size of the item
Returns
0 if no such item can be created/displayed

◆ DECLARE_COMPARISONS()

data_type_t::DECLARE_COMPARISONS ( data_type_t )

Member Data Documentation

◆ cbsize

int data_type_t::cbsize

size of this structure

◆ ud

void* data_type_t::ud

user-defined data to be passed to callbacks

◆ props

int data_type_t::props

properties

◆ name

const char* data_type_t::name

name of the data type. must be unique

◆ menu_name

const char* data_type_t::menu_name

Visible data type name to use in menus if nullptr, no menu item will be created.

◆ hotkey

const char* data_type_t::hotkey

Hotkey for the corresponding menu item if nullptr, no hotkey will be associated with the menu item.

◆ asm_keyword

const char* data_type_t::asm_keyword

keyword to use for this type in the assembly if nullptr, the data type cannot be used in the listing it can still be used in cpuregs window

◆ value_size

asize_t data_type_t::value_size

size of the value in bytes

◆ ea

ea_t data_type_t::ea

◆ nbytes

ea_t size_t data_type_t::nbytes

◆ maxsize

ea_t asize_t data_type_t::maxsize

The documentation for this struct was generated from the following file: