MT Core (C++)
Core library for replacing C++ standard in project usage
|
Methods related to endianness of multi-byte data. More...
Namespaces | |
namespace | mtcore::endian |
Functions | |
constexpr u16 | mtcore::flip_endian_u16 (const u16 bytes) |
Flips the endianness of a u16. | |
constexpr char16_t | mtcore::flip_endian_ch16 (const char16_t ch) |
Flips the endianness of a char16. | |
constexpr u32 | mtcore::flip_endian_u32 (const u32 bytes) |
Flips the endianness of a u3. | |
constexpr char32_t | mtcore::flip_endian_ch32 (const char32_t ch) |
Flips the endianness of a char32. | |
template<typename T> | |
constexpr auto | mtcore::flip_endian (const T bytes) |
Flips the endian of a u16, char16, u32, or char32. | |
Variables | |
constexpr auto | mtcore::endian::machine = std::endian::native |
endian of machine (alias for std::endian::native) | |
constexpr auto | mtcore::endian::opposite = std::endian::native == std::endian::little ? std::endian::big : std::endian::little |
endian that is opposite of machine (opposite of std::endian::native) | |
Methods related to endianness of multi-byte data.
|
constexpr |
Flips the endian of a u16, char16, u32, or char32.
Definition at line 80 of file byte_order.hpp.
|
constexpr |
Flips the endianness of a char16.
Definition at line 55 of file byte_order.hpp.
|
constexpr |
Flips the endianness of a char32.
Definition at line 71 of file byte_order.hpp.
Flips the endianness of a u16.
Definition at line 49 of file byte_order.hpp.
Flips the endianness of a u3.
Definition at line 63 of file byte_order.hpp.
|
constexpr |
endian of machine (alias for std::endian::native)
Definition at line 37 of file byte_order.hpp.
|
constexpr |
endian that is opposite of machine (opposite of std::endian::native)
Definition at line 42 of file byte_order.hpp.