xentara-utils v2.0.3
The Xentara Utility Library
|
A byte offset that can be used for byte-based pointer arithmetic This class A number that can be added to or subtracted from a pointer to move it by the corresponding number of bytes, as opposed to element. Also works on void pointers. More...
#include <xentara/utils/memory/ByteOffset.hpp>
Public Member Functions | |
constexpr | ByteOffset (Offset offset) noexcept |
Constructor. | |
Related Symbols | |
(Note that these are not member symbols.) | |
template<typename Type , xentara::utils::tools::Integral Offset> | |
auto | operator+= (Type *&pointer, xentara::utils::memory::ByteOffset< Offset > offset) noexcept -> Type *& |
Addition assignment operator for pointers. | |
template<typename Type , xentara::utils::tools::Integral Offset> | |
auto | operator-= (Type *&pointer, xentara::utils::memory::ByteOffset< Offset > offset) noexcept -> Type *& |
Subtraction assignment operator for pointers. | |
A byte offset that can be used for byte-based pointer arithmetic This class A number that can be added to or subtracted from a pointer to move it by the corresponding number of bytes, as opposed to element. Also works on void pointers.
|
explicitconstexprnoexcept |
Constructor.
|
related |
Addition assignment operator for pointers.
|
related |
Subtraction assignment operator for pointers.