50 } fourBytes = { 0x01020304 };
52 return fourBytes.c[0] == 4;
62 template <
typename dtype>
66 static_assert(CHAR_BIT == 8,
"CHAR_BIT != 8");
71 uint8 value8[
sizeof(dtype)];
76 for (
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:40
constexpr double c
speed of light
Definition: Constants.hpp:40
bool isLittleEndian() noexcept
Definition: Endian.hpp:44
dtype byteSwap(dtype value) noexcept
Definition: Endian.hpp:63
Definition: Coordinate.hpp:45
std::uint8_t uint8
Definition: Types.hpp:42
std::uint32_t uint32
Definition: Types.hpp:40