#include #include #include #include #include int main() { const std::array bytes{std::byte{0x01}, std::byte{0x02}}; Void::Binary::Reader reader{bytes}; const auto value = reader.read(std::endian::big); return value && *value == 0x0102 ? 0 : 1; }