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

Function ToBytes

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

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

Source from the content-addressed store, hash-verified

95
96 /// \brief Copy the value's bytes in native-endian byte order
97 void ToBytes(uint8_t* dest) const { std::memcpy(dest, &bits_, sizeof(bits_)); }
98 /// \brief Return the value's bytes in native-endian byte order
99 constexpr std::array<uint8_t, 2> ToBytes() const {
100#if ARROW_LITTLE_ENDIAN

Callers

nothing calls this directly

Calls 2

ToLittleEndianFunction · 0.70
ToBigEndianFunction · 0.70

Tested by

no test coverage detected