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

An immediate number. More...

#include <hexrays.hpp>

Public Member Functions

 cnumber_t (int _opnum=0)
 
void print (qstring *vout, const tinfo_t &type, const citem_t *parent=nullptr, bool *nice_stroff=nullptr) const
 Get text representation. More...
 
uint64 value (const tinfo_t &type) const
 Get value. More...
 
void assign (uint64 v, int nbytes, type_sign_t sign)
 Assign new value. More...
 
 DECLARE_COMPARISONS (cnumber_t)
 

Public Attributes

uint64 _value = 0
 its value More...
 
number_format_t nf
 how to represent it More...
 

Detailed Description

An immediate number.

Definition at line 5738 of file hexrays.hpp.

Constructor & Destructor Documentation

◆ cnumber_t()

cnumber_t::cnumber_t ( int  _opnum = 0)

Definition at line 5742 of file hexrays.hpp.

Member Function Documentation

◆ assign()

void cnumber_t::assign ( uint64  v,
int  nbytes,
type_sign_t  sign 
)

Assign new value.

Parameters
vnew value
nbytessize of the new value in bytes
signsign of the value

Definition at line 11623 of file hexrays.hpp.

◆ print()

void cnumber_t::print ( qstring *  vout,
const tinfo_t &  type,
const citem_t parent = nullptr,
bool *  nice_stroff = nullptr 
) const

Get text representation.

Parameters
voutoutput buffer
typenumber type
parentparent expression
nice_stroffout: printed as stroff expression

Definition at line 11609 of file hexrays.hpp.

◆ value()

uint64 cnumber_t::value ( const tinfo_t &  type) const

Get value.

This function will properly extend the number sign to 64bits depending on the type sign.

Definition at line 11615 of file hexrays.hpp.

Member Data Documentation

◆ _value

uint64 cnumber_t::_value = 0

its value

Definition at line 5740 of file hexrays.hpp.

◆ nf

number_format_t cnumber_t::nf

how to represent it

Examples
hexrays_sample2.cpp.

Definition at line 5741 of file hexrays.hpp.