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

Method ToBytes

cpp/src/arrow/util/basic_decimal.h:121–125  ·  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

119
120 /// \brief Return the raw bytes of the value in native-endian byte order.
121 std::array<uint8_t, kByteWidth> ToBytes() const {
122 std::array<uint8_t, kByteWidth> out{{0}};
123 memcpy(out.data(), array_.data(), kByteWidth);
124 return out;
125 }
126
127 /// \brief Copy the raw bytes of the value in native-endian byte order.
128 void ToBytes(uint8_t* out) const { memcpy(out, array_.data(), kByteWidth); }

Calls 1

dataMethod · 0.45

Tested by 6

MakeDataMethod · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TYPED_TESTFunction · 0.64