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 auto | native () const |
constexpr T | as_endian (std::endian viewAs) const |
Gets the value with the specific endian. | |
Public Attributes | |
const 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 208 of file byte_endian.hpp.
|
inlinenodiscardconstexpr |
Gets the value with the specific endian.
viewAs | Endian ordering to use |
Definition at line 223 of file byte_endian.hpp.
|
inlinenodiscardconstexpr |
Definition at line 217 of file byte_endian.hpp.
|
inlineconstexpr |
Grabs the pointed at value by casting it to the native endian.
Definition at line 215 of file byte_endian.hpp.
size_t mtcore::EndianSlice< T, Endian >::ConstEndianWrapper::i |
Definition at line 210 of file byte_endian.hpp.
const EndianSlice& mtcore::EndianSlice< T, Endian >::ConstEndianWrapper::slice |
Definition at line 209 of file byte_endian.hpp.