IDA C++ SDK 9.2
|
Information about a data format. More...
#include <bytes.hpp>
Public Member Functions | |
bool | is_present_in_menus () const |
Should this format be shown in UI menus. | |
bool (idaapi *print)(void *ud | |
Convert to colored string. | |
bool (idaapi *scan)(void *ud | |
Convert from uncolored string. | |
void (idaapi *analyze)(void *ud | |
Analyze custom data format occurrence This callback can be used to create xrefs from the current item. | |
DECLARE_COMPARISONS (data_format_t) |
Public Attributes | |
int32 | cbsize |
size of this structure | |
void * | ud |
user-defined data to be passed to callbacks | |
int | props |
properties (currently 0) | |
const char * | name |
Format name, must be unique. | |
const char * | menu_name |
Visible format 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. | |
asize_t | value_size |
size of the value in bytes 0 means any size is ok data formats that are registered for standard types (dtid 0) may be called with any value_size (instruction operands only) | |
int32 | text_width |
Usual width of the text representation This value is used to calculate the width of the control to display values of this type. | |
qstring * | out |
qstring const void * | value |
qstring const void asize_t | size |
qstring const void asize_t ea_t | current_ea |
qstring const void asize_t ea_t int | operand_num |
qstring const void asize_t ea_t int int | dtid |
bytevec_t * | value |
bytevec_t const char * | input |
bytevec_t const char ea_t | current_ea |
bytevec_t const char ea_t int | operand_num |
bytevec_t const char ea_t int qstring * | errstr |
ea_t | current_ea |
ea_t int | operand_num |
Information about a data format.
|
inline |
Should this format be shown in UI menus.
data_format_t::bool | ( | idaapi * | ) |
Convert to colored string.
ud | user-defined data |
out | output buffer. may be nullptr |
value | value to print. may not be nullptr |
size | size of value in 8-bit bytes |
current_ea | current address (BADADDR if unknown) |
operand_num | current operand number |
dtid | custom data type id (0-standard built-in data type) |
data_format_t::bool | ( | idaapi * | scan | ) |
Convert from uncolored string.
ud | user-defined data |
value | output buffer. may be nullptr |
input | input string. may not be nullptr |
current_ea | current address (BADADDR if unknown) |
operand_num | current operand number (-1 if unknown) |
errstr | buffer for error message |
data_format_t::void | ( | idaapi * | analyze | ) |
Analyze custom data format occurrence This callback can be used to create xrefs from the current item.
This callback may be missing.
ud | user-defined data |
current_ea | current address (BADADDR if unknown) |
operand_num | current operand number |
data_format_t::DECLARE_COMPARISONS | ( | data_format_t | ) |
int32 data_format_t::cbsize |
size of this structure
void* data_format_t::ud |
user-defined data to be passed to callbacks
int data_format_t::props |
properties (currently 0)
const char* data_format_t::name |
Format name, must be unique.
const char* data_format_t::menu_name |
Visible format name to use in menus if nullptr, no menu item will be created.
const char* data_format_t::hotkey |
Hotkey for the corresponding menu item if nullptr, no hotkey will be associated with the menu item.
asize_t data_format_t::value_size |
size of the value in bytes 0 means any size is ok data formats that are registered for standard types (dtid 0) may be called with any value_size (instruction operands only)
int32 data_format_t::text_width |
Usual width of the text representation This value is used to calculate the width of the control to display values of this type.
qstring* data_format_t::out |
bytevec_t* data_format_t::value |
bytevec_t const char* data_format_t::input |
ea_t data_format_t::current_ea |
ea_t int data_format_t::operand_num |