|
libcppwrap
A collection of C++ wrappers for native APIs
|
A structure holding details about a memory-mapped file or device. More...
#include <posix.hpp>

Public Member Functions | |
| constexpr | memory_region (void *address, std::size_t length) noexcept |
| Constructs a memory region. More... | |
| constexpr | memory_region () noexcept |
| Constructs an empty memory region. More... | |
| constexpr bool | operator!= (const memory_region &rhs) const noexcept |
| Compares two memory regions. More... | |
Public Attributes | |
| void * | address |
| The (actual, not requested) base address of the mapping. More... | |
| std::size_t | length |
| The length of the mapping in bytes. More... | |
A structure holding details about a memory-mapped file or device.
Such a structure is the resource type of a w::mmap_handle RAII handle.
|
inlineconstexprnoexcept |
Constructs a memory region.
| address | The (actual, not requested) base address of the mapping. |
| The | length of the mapping in bytes. |
|
inlineconstexprnoexcept |
Constructs an empty memory region.
|
inlineconstexprnoexcept |
Compares two memory regions.
| rhs | A reference to the memory region to compare. |
false if this object and rhs both have the same address and length. | void* w::memory_region::address |
The (actual, not requested) base address of the mapping.
| std::size_t w::memory_region::length |
The length of the mapping in bytes.