MT Core (C++)
Core library for replacing C++ standard in project usage
|
#include <bit>
Go to the source code of this file.
Namespaces | |
namespace | mtcore |
Core library for C++ with Zig-related functionality. | |
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) | |