Home
last modified time | relevance | path

Searched refs:ConvertOrderTo (Results 1 – 3 of 3) sorted by relevance

/external/pigweed/pw_bytes/
Dendian_test.cc39 static_assert(ConvertOrderTo(std::endian::native, uint8_t{0x12}) == uint8_t{0x12});
40 static_assert(ConvertOrderTo(std::endian::native, uint16_t{0x0011}) == uint16_t{0x0011});
41 static_assert(ConvertOrderTo(std::endian::native, uint32_t{0x33221100}) == uint32_t{0x33221100});
42 static_assert(ConvertOrderTo(std::endian::native, uint64_t{0x0011223344556677}) == uint64_t{0x00112…
45 static_assert(ConvertOrderTo(std::endian::native, int8_t{0x12}) == int8_t{0x12});
46 static_assert(ConvertOrderTo(std::endian::native, int16_t{0x0011}) == int16_t{0x0011});
47 static_assert(ConvertOrderTo(std::endian::native, int32_t{0x33221100}) == int32_t{0x33221100});
48 static_assert(ConvertOrderTo(std::endian::native, int64_t{0x0011223344556677}) == int64_t{0x0011223…
65 static_assert(ConvertOrderTo(kNonNative, uint8_t{0x12}) == uint8_t{0x12});
66 static_assert(ConvertOrderTo(kNonNative, uint16_t{0x0011}) == uint16_t{0x1100});
[all …]
/external/pigweed/pw_bytes/public/pw_bytes/
Dendian.h125 constexpr T ConvertOrderTo(std::endian to_endianness, T value) { in ConvertOrderTo() function
138 return internal::CopyLittleEndian(ConvertOrderTo(order, value)); in CopyInOrder()
Dbyte_builder.h299 return WriteInOrder(bytes::ConvertOrderTo(order, value));
310 return WriteInOrder(bytes::ConvertOrderTo(order, value));
321 return WriteInOrder(bytes::ConvertOrderTo(order, value));