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

An immediate number. More...

#include <hexrays.hpp>

Public Member Functions

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

Public Attributes

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

Detailed Description

An immediate number.

Constructor & Destructor Documentation

◆ cnumber_t()

cnumber_t::cnumber_t ( int _opnum = 0)
inline

Member Function Documentation

◆ print()

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

Get text representation.

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

◆ value()

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

Get value.

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

◆ assign()

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

Assign new value.

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

◆ HEXRAYS_MEMORY_ALLOCATION_FUNCS()

cnumber_t::HEXRAYS_MEMORY_ALLOCATION_FUNCS ( )

Member Data Documentation

◆ _value

uint64 cnumber_t::_value = 0

its value

◆ nf

number_format_t cnumber_t::nf

how to represent it


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