xentara-plugin v1.2.1
The Xentara Plugin Framework
|
A handle to raw data located in a memory resource. More...
#include <memory/RawMemoryHandle.hpp>
Public Member Functions | |
MemoryHandle () noexcept=default | |
Default constructor. | |
MemoryHandle (const MemoryResource::BlockHandle &blockHandle, std::size_t offset) noexcept | |
Creates a handle for an object in a memory block. | |
MemoryHandle (std::nullptr_t) noexcept | |
Conversion from an null pointer. | |
auto | operator= (std::nullptr_t) noexcept -> MemoryHandle & |
Assignment operator for a null pointer. | |
auto | operator== (std::nullptr_t) const -> bool |
Comparison operator with a null pointer. | |
operator bool () const noexcept | |
Checks for a null handle. | |
auto | operator== (const MemoryHandle &) const -> bool=default |
Comparison operator. | |
auto | operator<=> (const MemoryHandle &rhs) const -> std::partial_ordering |
Comparison operator. | |
auto | memoryResource () const noexcept -> MemoryResource & |
Returns the memory resource that the data resides in. | |
constexpr auto | blockHandle () const noexcept -> const MemoryResource::BlockHandle & |
Returns a a handle to the memory block that holds the data. | |
auto | offset () const noexcept -> std::size_t |
Gets the offset of the data within the block data. | |
auto | initializer () const -> Initializer< RawMemory > |
Creates an initializer for additional initialization. | |
auto | operator++ () noexcept -> MemoryHandle & |
Increments the handle by a one byte. | |
auto | operator++ (int) noexcept -> MemoryHandle |
Increments the handle by a one byte. | |
auto | operator-- () noexcept -> MemoryHandle & |
Decrements the handle by a one byte. | |
auto | operator-- (int) noexcept -> MemoryHandle |
Decrements the handle by a one byte. | |
auto | operator+= (std::ptrdiff_t offset) noexcept -> MemoryHandle & |
Offsets the handle by a specific number of bytes. | |
auto | operator-= (std::ptrdiff_t offset) noexcept -> MemoryHandle & |
Offsets the handle by a specific number of bytes. | |
A handle to raw data located in a memory resource.
|
defaultnoexcept |
Default constructor.
This constructor constructs a null handle
|
noexcept |
Creates a handle for an object in a memory block.
|
noexcept |
Conversion from an null pointer.
This constructor constructs a null handle
|
constexprnoexcept |
Returns a a handle to the memory block that holds the data.
auto xentara::memory::MemoryHandle< RawMemory >::initializer | ( | ) | const -> Initializer<RawMemory> |
Creates an initializer for additional initialization.
This function can be used to perform additional initialization of the memory from code locations where the original initializer returned when the block was allocated is not available.
|
noexcept |
Returns the memory resource that the data resides in.
|
noexcept |
Gets the offset of the data within the block data.
|
explicitnoexcept |
Checks for a null handle.
|
noexcept |
Increments the handle by a one byte.
|
noexcept |
Increments the handle by a one byte.
|
noexcept |
Offsets the handle by a specific number of bytes.
offset | The number of bytes to move the handle |
|
noexcept |
Decrements the handle by a one byte.
|
noexcept |
Decrements the handle by a one byte.
|
noexcept |
Offsets the handle by a specific number of bytes.
offset | The negative number of bytes to move the handle |
auto xentara::memory::MemoryHandle< RawMemory >::operator<=> | ( | const MemoryHandle< RawMemory > & | rhs | ) | const -> std::partial_ordering |
Comparison operator.
|
noexcept |
Assignment operator for a null pointer.
|
default |
Comparison operator.
auto xentara::memory::MemoryHandle< RawMemory >::operator== | ( | std::nullptr_t | ) | const -> bool |
Comparison operator with a null pointer.