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

Function ToBytes

cpp/src/arrow/util/basic_decimal.h:217–221  ·  view source on GitHub ↗

\brief Return the raw bytes of the value in native-endian byte order.

Source from the content-addressed store, hash-verified

215
216 /// \brief Return the raw bytes of the value in native-endian byte order.
217 std::array<uint8_t, kByteWidth> ToBytes() const {
218 std::array<uint8_t, kByteWidth> out{{0}};
219 memcpy(out.data(), &value_, kByteWidth);
220 return out;
221 }
222
223 /// \brief Copy the raw bytes of the value in native-endian byte order
224 void ToBytes(uint8_t* out) const { memcpy(out, &value_, kByteWidth); }

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected