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

Used by debugger modules to report memory are information to IDA kernel. More...

#include <idd.hpp>

Inheritance diagram for memory_info_t:
range_t

Public Member Functions

bool operator== (const memory_info_t &r) const
bool operator!= (const memory_info_t &r) const
Public Member Functions inherited from range_t
 range_t (ea_t ea1=0, ea_t ea2=0)
 DECLARE_COMPARISONS (range_t)
 Compare two range_t instances, based on the start_ea.
bool contains (ea_t ea) const
 Is 'ea' in the address range?
bool contains (const range_t &r) const
 Is every ea in 'r' also in this range_t?
bool overlaps (const range_t &r) const
 Is there an ea in 'r' that is also in this range_t?
void clear ()
 Set start_ea, end_ea to 0.
bool empty () const
 Is the size of the range_t <= 0?
asize_t size () const
 Get end_ea - start_ea.
void intersect (const range_t &r)
 Assign the range_t to the intersection between the range_t and 'r'.
void extend (ea_t ea)
 Ensure that the range_t includes 'ea'.
size_t print (char *buf, size_t bufsize) const
 Print the range_t.

Public Attributes

qstring name
 Memory range name.
qstring sclass
 Memory range class name.
ea_t sbase = 0
 Segment base (meaningful only for segmented architectures, e.g.
uchar bitness = 0
 Number of bits in segment addresses (0-16bit, 1-32bit, 2-64bit)
uchar perm = 0
 Memory range permissions (0-no information): see segment.hpp.
Public Attributes inherited from range_t
ea_t start_ea
 start_ea included
ea_t end_ea
 end_ea excluded

Detailed Description

Used by debugger modules to report memory are information to IDA kernel.

It is ok to return empty fields if information is not available.

Member Function Documentation

◆ operator==()

bool memory_info_t::operator== ( const memory_info_t & r) const
inline

◆ operator!=()

bool memory_info_t::operator!= ( const memory_info_t & r) const
inline

Member Data Documentation

◆ name

qstring memory_info_t::name

Memory range name.

◆ sclass

qstring memory_info_t::sclass

Memory range class name.

◆ sbase

ea_t memory_info_t::sbase = 0

Segment base (meaningful only for segmented architectures, e.g.

16-bit x86) The base is specified in paragraphs (i.e. shifted to the right by 4)

◆ bitness

uchar memory_info_t::bitness = 0

Number of bits in segment addresses (0-16bit, 1-32bit, 2-64bit)

◆ perm

uchar memory_info_t::perm = 0

Memory range permissions (0-no information): see segment.hpp.


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