38template <std::
size_t N>
51 std::memcpy(to.data(), from, 1U);
63 std::uint16_t value{};
64 std::memcpy(&value, from,
sizeof(value));
65 to[0U] =
static_cast<unsigned char>(value >> 8U);
66 to[1U] =
static_cast<unsigned char>(value);
78 std::uint32_t value{};
79 std::memcpy(&value, from,
sizeof(value));
80 to[0U] =
static_cast<unsigned char>(value >> 24U);
81 to[1U] =
static_cast<unsigned char>(value >> 16U);
82 to[2U] =
static_cast<unsigned char>(value >> 8U);
83 to[3U] =
static_cast<unsigned char>(value);
97 std::uint64_t value{};
98 std::memcpy(&value, from,
sizeof(value));
99 to[0U] =
static_cast<unsigned char>(value >> 56U);
100 to[1U] =
static_cast<unsigned char>(value >> 48U);
101 to[2U] =
static_cast<unsigned char>(value >> 40U);
102 to[3U] =
static_cast<unsigned char>(value >> 32U);
103 to[4U] =
static_cast<unsigned char>(value >> 24U);
104 to[5U] =
static_cast<unsigned char>(value >> 16U);
105 to[6U] =
static_cast<unsigned char>(value >> 8U);
106 to[7U] =
static_cast<unsigned char>(value);
116template <std::
size_t N>
118 const void* from, std::array<unsigned char, N>* to)
noexcept {
Class of views of mutable buffers with static sizes.
Definition of mutable_static_binary_view class.
Namespace of internal implementations.
void to_big_endian< 2U >(const void *from, mutable_static_binary_view< 2U > to) noexcept
Convert to big endian.
void to_big_endian< 1U >(const void *from, mutable_static_binary_view< 1U > to) noexcept
Convert to big endian.
void to_big_endian< 4U >(const void *from, mutable_static_binary_view< 4U > to) noexcept
Convert to big endian.
void to_big_endian(const void *from, mutable_static_binary_view< N > to) noexcept
Convert to big endian.
void to_big_endian< 8U >(const void *from, mutable_static_binary_view< 8U > to) noexcept
Convert to big endian.