48 std::array<char, 4>
c;
49 } fourBytes = { 0x01020304 };
52 return fourBytes.c[0] == 4;
62 template<
typename dtype>
66 static_assert(CHAR_BIT == 8,
"CHAR_BIT != 8");
71 std::array<
uint8,
sizeof(dtype)> value8;
76 for (std::size_t k = 0; k <
sizeof(dtype); ++k)
78 dest.value8[k] = source.value8[
sizeof(dtype) - k - 1];
#define STATIC_ASSERT_INTEGER(dtype)
Definition: StaticAsserts.hpp:43
constexpr double c
speed of light
Definition: Core/Constants.hpp:36
Definition: Endian.hpp:36
bool isLittleEndian() noexcept
Definition: Endian.hpp:43
dtype byteSwap(dtype value) noexcept
Definition: Endian.hpp:63
std::uint8_t uint8
Definition: Types.hpp:42
std::uint32_t uint32
Definition: Types.hpp:40