Public Member Functions | Public Attributes | List of all members
cnumber_t Struct Reference

An immediate number. More...

Public Member Functions

 cnumber_t (int _opnum=0)
size_t print (char *buf, size_t bufsize, const tinfo_t &type, const citem_t *parent=NULL, bool *nice_stroff=NULL) 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...

Public Attributes

uint64 _value
 its value
number_format_t nf
 how to represent it

Detailed Description

An immediate number.

Definition at line 1304 of file hexrays.hpp.

Member Function Documentation

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

Assign new value.

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

Definition at line 4868 of file hexrays.hpp.

References hexdsp.

size_t cnumber_t::print ( char *  buf,
size_t  bufsize,
const tinfo_t &  type,
const citem_t parent = NULL,
bool *  nice_stroff = NULL 
) const

Get text representation.

bufoutput buffer
bufsizesize of output buffer
typenumber type
parentparent expression
nice_stroffout: printed as stroff expression

Definition at line 4854 of file hexrays.hpp.

References hexdsp.

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 4860 of file hexrays.hpp.

References hexdsp.