#include <memory/Array_Handle.hpp>
◆ Handle()
constexpr xentara::memory::Array::Handle::Handle |
( |
| ) |
|
|
constexprdefaultnoexcept |
Default constructor.
This constructor creates an invalid handle. Do not attempt to use this handle, the associated memory may not be valid.
◆ offset()
constexpr auto xentara::memory::Array::Handle::offset |
( |
| ) |
const -> std::size_t
|
|
constexprnoexcept |
Gets the offset within the array data.
◆ operator++() [1/2]
auto xentara::memory::Array::Handle::operator++ |
( |
| ) |
-> Handle &
|
|
noexcept |
Increments the handle by a one byte.
- Attention
- This can make the handle point to invalid data. It is your respoinsibility to ensure that the handle does not end up pointing outside of the array's data.
- Returns
- Returns a reference to this object
◆ operator++() [2/2]
auto xentara::memory::Array::Handle::operator++ |
( |
int |
| ) |
-> Handle
|
|
noexcept |
Increments the handle by a one byte.
- Attention
- This can make the handle point to invalid data. It is your respoinsibility to ensure that the handle does not end up pointing outside of the array's data.
- Returns
- The old value of the handle
◆ operator+=()
Offsets the handle by a specific number of bytes.
- Attention
- This can make the handle point to invalid data. It is your respoinsibility to ensure that the handle does not end up pointing outside of the array's data.
- Parameters
-
offset | The number of bytes to move the handle |
- Returns
- Returns a reference to this object
◆ operator--() [1/2]
auto xentara::memory::Array::Handle::operator-- |
( |
| ) |
-> Handle &
|
|
noexcept |
Decrements the handle by a one byte.
- Attention
- This can make the handle point to invalid data. It is your respoinsibility to ensure that the handle does not end up pointing outside of the array's data.
- Returns
- Returns a reference to this object
◆ operator--() [2/2]
auto xentara::memory::Array::Handle::operator-- |
( |
int |
| ) |
-> Handle
|
|
noexcept |
Decrements the handle by a one byte.
- Attention
- This can make the handle point to invalid data. It is your respoinsibility to ensure that the handle does not end up pointing outside of the array's data.
- Returns
- The old value of the handle
◆ operator-=()
Offsets the handle by a specific number of bytes.
- Attention
- This can make the handle point to invalid data. It is your respoinsibility to ensure that the handle does not end up pointing outside of the array's data.
- Parameters
-
offset | The negative number of bytes to move the handle |
- Returns
- Returns a reference to this object
◆ operator<=>()
auto xentara::memory::Array::Handle::operator<=> |
( |
const Handle & |
rhs | ) |
const -> auto=default |
|
default |
◆ operator==()
auto xentara::memory::Array::Handle::operator== |
( |
const Handle & |
| ) |
const -> bool=default |
|
default |