![]() |
Gaia-ECS v1.0.0
A simple and powerful entity component system
|
Pointer wrapper for writing memory in defined way (not causing undefined behavior) More...
#include <mem_alloc.h>
Public Member Functions | |
| unaligned_ref (void *p) | |
| Creates a reference to potentially unaligned storage. | |
| unaligned_ref & | operator= (const T &value) |
| Stores a value using byte-wise copying. | |
| GAIA_NODISCARD | operator T () const |
| Loads a value using byte-wise copying. | |
Pointer wrapper for writing memory in defined way (not causing undefined behavior)
| T | Stored value type. |
|
inline |
Creates a reference to potentially unaligned storage.
| p | Storage address. |
|
inline |
Loads a value using byte-wise copying.
|
inline |
Stores a value using byte-wise copying.
| value | Value to store. |