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

Value offset (microregister number or stack offset) More...

#include <hexrays.hpp>

Inheritance diagram for voff_t:
vivl_t

Public Member Functions

 voff_t (mopt_t _type, sval_t _off)
 
 voff_t (const mop_t &op)
 
void set (mopt_t _type, sval_t _off)
 
void set_stkoff (sval_t stkoff)
 
void set_reg (mreg_t mreg)
 
void undef ()
 
bool defined () const
 
bool is_reg () const
 
bool is_stkoff () const
 
mreg_t get_reg () const
 
sval_t get_stkoff () const
 
void inc (sval_t delta)
 
voff_t add (int width) const
 
sval_t diff (const voff_t &r) const
 
 DECLARE_COMPARISONS (voff_t)
 

Public Attributes

sval_t off = -1
 register number or stack offset More...
 
mopt_t type = mop_z
 mop_r - register, mop_S - stack, mop_z - undefined More...
 

Detailed Description

Value offset (microregister number or stack offset)

Definition at line 3205 of file hexrays.hpp.

Constructor & Destructor Documentation

◆ voff_t() [1/3]

voff_t::voff_t ( )

Definition at line 3210 of file hexrays.hpp.

◆ voff_t() [2/3]

voff_t::voff_t ( mopt_t  _type,
sval_t  _off 
)

Definition at line 3211 of file hexrays.hpp.

◆ voff_t() [3/3]

voff_t::voff_t ( const mop_t op)

Definition at line 3212 of file hexrays.hpp.

Member Function Documentation

◆ add()

voff_t voff_t::add ( int  width) const

Definition at line 3230 of file hexrays.hpp.

◆ DECLARE_COMPARISONS()

voff_t::DECLARE_COMPARISONS ( voff_t  )

Definition at line 3233 of file hexrays.hpp.

◆ defined()

bool voff_t::defined ( ) const

Definition at line 3223 of file hexrays.hpp.

◆ diff()

sval_t voff_t::diff ( const voff_t r) const

Definition at line 3231 of file hexrays.hpp.

◆ get_reg()

mreg_t voff_t::get_reg ( ) const

Definition at line 3226 of file hexrays.hpp.

◆ get_stkoff()

sval_t voff_t::get_stkoff ( ) const

Definition at line 3227 of file hexrays.hpp.

◆ inc()

void voff_t::inc ( sval_t  delta)

Definition at line 3229 of file hexrays.hpp.

◆ is_reg()

bool voff_t::is_reg ( ) const

Definition at line 3224 of file hexrays.hpp.

◆ is_stkoff()

bool voff_t::is_stkoff ( ) const

Definition at line 3225 of file hexrays.hpp.

◆ set()

void voff_t::set ( mopt_t  _type,
sval_t  _off 
)

Definition at line 3218 of file hexrays.hpp.

◆ set_reg()

void voff_t::set_reg ( mreg_t  mreg)

Definition at line 3220 of file hexrays.hpp.

◆ set_stkoff()

void voff_t::set_stkoff ( sval_t  stkoff)

Definition at line 3219 of file hexrays.hpp.

◆ undef()

void voff_t::undef ( )

Definition at line 3221 of file hexrays.hpp.

Member Data Documentation

◆ off

sval_t voff_t::off = -1

register number or stack offset

Definition at line 3207 of file hexrays.hpp.

Referenced by vivl_t::contains(), vivl_t::includes(), and vivl_t::overlap().

◆ type

mopt_t voff_t::type = mop_z

mop_r - register, mop_S - stack, mop_z - undefined

Definition at line 3208 of file hexrays.hpp.

Referenced by vivl_t::contains(), vivl_t::includes(), and vivl_t::overlap().