IDA SDK
Macros
UDT serialization flags

Detailed Description

passed as 'sudt_flags' parameter of helpers declared in DECLARE_TINFO_HELPERS

Macros

#define SUDT_SORT   0x0001
 fields are not sorted by offset, sort them first
 
#define SUDT_ALIGN   0x0002
 recalculate field alignments, struct packing, etc More...
 
#define SUDT_GAPS   0x0004
 allow to fill gaps with additional members (_BYTE[])
 
#define SUDT_UNEX   0x0008
 references to nonexistent member types are acceptable More...
 
#define SUDT_FAST   0x0010
 serialize without verifying offsets and alignments
 
#define SUDT_CONST   0x0040
 only for serialize_udt: make type const
 
#define SUDT_VOLATILE   0x0080
 only for serialize_udt: make type volatile
 
#define SUDT_TRUNC   0x0100
 serialize: truncate useless strings from fields, fldcmts
 

Macro Definition Documentation

#define SUDT_ALIGN   0x0002

recalculate field alignments, struct packing, etc

to match the offsets and size info

#define SUDT_UNEX   0x0008

references to nonexistent member types are acceptable

in this case it is better to set the corresponding udt_member_t::fda field to the type alignment. if this field is not set, ida will try to guess the alignment.