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

Number representation. More...

#include <hexrays.hpp>

Public Member Functions

 number_format_t (int _opnum=0)
 Contructor.
int get_radix () const
 Get number radix.
bool is_fixed () const
 Is number representation fixed?
bool is_hex () const
 Is a hexadecimal number?
bool is_dec () const
 Is a decimal number?
bool is_oct () const
 Is a octal number?
bool is_enum () const
 Is a symbolic constant?
bool is_char () const
 Is a character constant?
bool is_stroff () const
 Is a structure field offset?
bool is_numop () const
 Is a number?
bool needs_to_be_inverted () const
 Does the number need to be negated or bitwise negated?
bool has_unmutable_type () const

Public Attributes

flags_t flags32 = 0
 low 32bit of flags (for compatibility)
char opnum
 operand number: 0..UA_MAXOP
char props = 0
 properties: combination of NF_ bits (Number format property bits)
uchar serial = 0
 for enums: constant serial number
char org_nbytes = 0
 original number size in bytes
qstring type_name
 for stroffs: structure for offsetof()
for enums: enum name
flags64_t flags = 0
 ida flags, which describe number radix, enum, etc

Detailed Description

Number representation.

This structure holds information about a number format.

Constructor & Destructor Documentation

◆ number_format_t()

number_format_t::number_format_t ( int _opnum = 0)
inline

Contructor.

Member Function Documentation

◆ get_radix()

int number_format_t::get_radix ( ) const
inline

Get number radix.

Returns
2,8,10, or 16

◆ is_fixed()

bool number_format_t::is_fixed ( ) const
inline

Is number representation fixed?

Fixed representation cannot be modified by the decompiler

◆ is_hex()

bool number_format_t::is_hex ( ) const
inline

Is a hexadecimal number?

◆ is_dec()

bool number_format_t::is_dec ( ) const
inline

Is a decimal number?

◆ is_oct()

bool number_format_t::is_oct ( ) const
inline

Is a octal number?

◆ is_enum()

bool number_format_t::is_enum ( ) const
inline

Is a symbolic constant?

◆ is_char()

bool number_format_t::is_char ( ) const
inline

Is a character constant?

◆ is_stroff()

bool number_format_t::is_stroff ( ) const
inline

Is a structure field offset?

◆ is_numop()

bool number_format_t::is_numop ( ) const
inline

Is a number?

◆ needs_to_be_inverted()

bool number_format_t::needs_to_be_inverted ( ) const
inline

Does the number need to be negated or bitwise negated?

Returns true if the user requested a negation but it is not done yet

◆ has_unmutable_type()

bool number_format_t::has_unmutable_type ( ) const
inline

Member Data Documentation

◆ flags32

flags_t number_format_t::flags32 = 0

low 32bit of flags (for compatibility)

◆ opnum

char number_format_t::opnum

operand number: 0..UA_MAXOP

◆ props

char number_format_t::props = 0

properties: combination of NF_ bits (Number format property bits)

◆ serial

uchar number_format_t::serial = 0

for enums: constant serial number

◆ org_nbytes

char number_format_t::org_nbytes = 0

original number size in bytes

◆ type_name

qstring number_format_t::type_name

for stroffs: structure for offsetof()
for enums: enum name

◆ flags

flags64_t number_format_t::flags = 0

ida flags, which describe number radix, enum, etc


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