MCPcopy Create free account
hub / github.com/apache/arrow / ToLittleEndian

Function ToLittleEndian

cpp/src/arrow/util/float16.h:108–111  ·  view source on GitHub ↗

\brief Copy the value's bytes in little-endian byte order

Source from the content-addressed store, hash-verified

106
107 /// \brief Copy the value's bytes in little-endian byte order
108 void ToLittleEndian(uint8_t* dest) const {
109 const auto bytes = ToLittleEndian();
110 std::memcpy(dest, bytes.data(), bytes.size());
111 }
112 /// \brief Return the value's bytes in little-endian byte order
113 constexpr std::array<uint8_t, 2> ToLittleEndian() const {
114 return {uint8_t(bits_ & 0xff), uint8_t(bits_ >> 8)};

Callers 1

ToBytesFunction · 0.70

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected