A stretch of memory that is only read: where it starts and how many bytes it covers.
More...
#include <vitrio/const_memory_range.hpp>
A stretch of memory that is only read: where it starts and how many bytes it covers.
The counterpart of memory_range for memory that is not written through, such as what a write takes its bytes from. Every memory_range is one.
◆ const_memory_range() [1/2]
| vitrio::const_memory_range::const_memory_range |
( |
const void * | address, |
|
|
std::size_t | size ) |
|
noexcept |
Construct a stretch from its first byte and its size.
- Parameters
-
| address | First byte of the stretch. |
| size | How many bytes it covers. |
◆ const_memory_range() [2/2]
| vitrio::const_memory_range::const_memory_range |
( |
const memory_range & | range | ) |
|
|
noexcept |
◆ get_address()
| const void * vitrio::const_memory_range::get_address |
( |
| ) |
const |
|
noexcept |
Get the first byte of the stretch.
- Returns
- const void* Its address.
◆ get_size()
| std::size_t vitrio::const_memory_range::get_size |
( |
| ) |
const |
|
noexcept |
Get how many bytes the stretch covers.
- Returns
- std::size_t The size in bytes.
The documentation for this class was generated from the following file: