24static_assert(detail::get_length<std::endian::little>(
"\002\001", std::endian::little) == 0x0102);
26static_assert(detail::get_length<std::endian::little>(
"\001\002", std::endian::big) == 0x0102);
28static_assert(detail::get_length<std::endian::big>(
"\001\002", std::endian::big) == 0x0201);
30static_assert(detail::get_length<std::endian::big>(
"\002\001", std::endian::little) == 0x0201);