MT Core (C++)
Core library for replacing C++ standard in project usage
|
Endian Wrapper for grabbing the endian value By default, will handle converting to and from the native architecture Can also manually specify the endian architecture to use. More...
#include <byte_endian.hpp>
Public Member Functions | |
constexpr | operator T () const |
Grabs the pointed at value by casting it to the native endian. | |
constexpr EndianWrapper & | operator= (T val) |
Sets the pointed at value using the native endian. | |
constexpr T | native () const |
constexpr T | as_endian (std::endian viewAs) const |
Gets the value with the specific endian. | |
constexpr EndianWrapper & | with_endian (T newVal, std::endian setAs) |
Sets the target value with the provided endian interpretation. | |
Public Attributes | |
EndianSlice & | slice |
size_t | i |
Endian Wrapper for grabbing the endian value By default, will handle converting to and from the native architecture Can also manually specify the endian architecture to use.
Definition at line 239 of file byte_endian.hpp.
|
inlinenodiscardconstexpr |
Gets the value with the specific endian.
viewAs | Endian ordering to use |
Definition at line 259 of file byte_endian.hpp.
|
inlinenodiscardconstexpr |
Definition at line 253 of file byte_endian.hpp.
|
inlineconstexpr |
Grabs the pointed at value by casting it to the native endian.
Definition at line 246 of file byte_endian.hpp.
|
inlineconstexpr |
Sets the pointed at value using the native endian.
Definition at line 251 of file byte_endian.hpp.
|
inlineconstexpr |
Sets the target value with the provided endian interpretation.
newVal | New value in the specified endian |
setAs | Endian of the new value |
Definition at line 274 of file byte_endian.hpp.
size_t mtcore::EndianSlice< T, Endian >::EndianWrapper::i |
Definition at line 241 of file byte_endian.hpp.
EndianSlice& mtcore::EndianSlice< T, Endian >::EndianWrapper::slice |
Definition at line 240 of file byte_endian.hpp.