10 #include <gtest/gtest.h> 18 uint8_t
val = 0x88, val_r;
19 const uint8_t val_r_ok = 0x88;
27 int8_t
val = 0x66, val_r;
28 const int8_t val_r_ok = 0x66;
36 uint16_t
val = 0x1122, val_r;
37 const uint16_t val_r_ok = 0x2211;
45 int16_t
val = 0x1122, val_r;
46 const int16_t val_r_ok = 0x2211;
54 uint32_t
val = UINT32_C(0x11223344), val_r;
55 const uint32_t val_r_ok = UINT32_C(0x44332211);
63 int32_t
val = INT32_C(0x11223344), val_r;
64 const int32_t val_r_ok = INT32_C(0x44332211);
72 uint64_t
val = UINT64_C(0x1122334455667788), val_r;
73 const uint64_t val_r_ok = UINT64_C(0x8877665544332211);
81 int64_t
val = INT64_C(0x1122334455667766), val_r;
82 const int64_t val_r_ok = INT64_C(0x6677665544332211);
91 bool valFalse =
false;
95 EXPECT_FALSE(valFalse);
98 uint8_t
val = UINT8_C(0xc1);
106 const uint32_t val_r_ok = UINT32_C(0x803f);
115 const uint64_t val_r_ok = UINT32_C(0xf03f);
123 const auto t_org = t;
EXPECT_TRUE(mrpt::system::fileExists(ini_fil))
void reverseBytes(const T &v_in, T &v_out)
Reverse the order of the bytes of a given type (useful for transforming btw little/big endian) ...
static time_point now() noexcept
Returns the current time using the currently selected Clock source.
void reverseBytesInPlace(bool &v_in_out)
Reverse the order of the bytes of a given type (useful for transforming btw little/big endian) ...
EXPECT_EQ(out.image_pair_was_used.size(), NUM_IMGS)
Dest bit_cast(const Source &source)