xentara-plugin v1.2.1
The Xentara Plugin Framework
|
A sentinel that protects read access to a raw memory. More...
#include <memory/ReadSentinel_RawMemory.hpp>
Public Member Functions | |
ReadSentinel (const RawMemoryBlock &block) | |
Constructor for a memory block. | |
ReadSentinel (const RawMemoryHandle &handle) | |
Constructor for a handle. | |
internal auto | end () -> void |
Ends reading prematurely. | |
auto | placement () const noexcept -> const void * |
Gets the placement of the containing data. | |
A sentinel that protects read access to a raw memory.
xentara::memory::ReadSentinel< RawMemory >::ReadSentinel | ( | const RawMemoryBlock & | block | ) |
Constructor for a memory block.
block | The memory block you wish to read from |
xentara::memory::ReadSentinel< RawMemory >::ReadSentinel | ( | const RawMemoryHandle & | handle | ) |
Constructor for a handle.
handle | The handle you wish to read from |
internal auto xentara::memory::ReadSentinel< RawMemory >::end | ( | ) | -> void |
Ends reading prematurely.
|
noexcept |
Gets the placement of the containing data.