A contiguous range of memory mapped in the current process.
More...
#include <MemoryLayout.hpp>
|
| | Region ()=default |
| | Region (std::string name, uint64_t addr, uint64_t size) |
| | Region (const Region &)=default |
| Region & | operator= (const Region &)=default |
| | Region (Region &&) noexcept=default |
| Region & | operator= (Region &&) noexcept=default |
| | ~Region ()=default |
| std::string_view | name () const |
| | Name associated with the region: name/path of the module mapped at this address (e.g. libc.so.6) or the identifier of a region that is not backed by a file (e.g. [stack], [heap]).
|
| uint64_t | addr () const |
| | Address at which the region starts.
|
| uint64_t | size () const |
| | Size of the region.
|
| uint64_t | end_addr () const |
| | Address at which the region ends.
|
| bool | contains (uint64_t addr) const |
| | Whether the given address is within this region.
|
| std::string | to_string () const |
A contiguous range of memory mapped in the current process.
◆ Region() [1/4]
| LIEF::runtime::MemoryLayout::Region::Region |
( |
| ) |
|
|
default |
◆ Region() [2/4]
| LIEF::runtime::MemoryLayout::Region::Region |
( |
std::string | name, |
|
|
uint64_t | addr, |
|
|
uint64_t | size ) |
|
inline |
◆ Region() [3/4]
| LIEF::runtime::MemoryLayout::Region::Region |
( |
const Region & | | ) |
|
|
default |
◆ Region() [4/4]
| LIEF::runtime::MemoryLayout::Region::Region |
( |
Region && | | ) |
|
|
defaultnoexcept |
◆ ~Region()
| LIEF::runtime::MemoryLayout::Region::~Region |
( |
| ) |
|
|
default |
◆ addr()
| uint64_t LIEF::runtime::MemoryLayout::Region::addr |
( |
| ) |
const |
|
inline |
◆ contains()
| bool LIEF::runtime::MemoryLayout::Region::contains |
( |
uint64_t | addr | ) |
const |
|
inline |
Whether the given address is within this region.
References addr(), and end_addr().
◆ end_addr()
| uint64_t LIEF::runtime::MemoryLayout::Region::end_addr |
( |
| ) |
const |
|
inline |
◆ name()
| std::string_view LIEF::runtime::MemoryLayout::Region::name |
( |
| ) |
const |
|
inline |
Name associated with the region: name/path of the module mapped at this address (e.g. libc.so.6) or the identifier of a region that is not backed by a file (e.g. [stack], [heap]).
It can be empty for anonymous regions.
References LIEF_LIFETIMEBOUND, and name().
Referenced by name(), and Region().
◆ operator=() [1/2]
| Region & LIEF::runtime::MemoryLayout::Region::operator= |
( |
const Region & | | ) |
|
|
default |
◆ operator=() [2/2]
| Region & LIEF::runtime::MemoryLayout::Region::operator= |
( |
Region && | | ) |
|
|
defaultnoexcept |
◆ size()
| uint64_t LIEF::runtime::MemoryLayout::Region::size |
( |
| ) |
const |
|
inline |
◆ to_string()
| std::string LIEF::runtime::MemoryLayout::Region::to_string |
( |
| ) |
const |
The documentation for this class was generated from the following file: