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

Method little_endian_array

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

\brief Get the bits of the two's complement representation of the number. The elements are in little endian order. However, the bits within each uint64_t element are in native endian order. For example, BasicDecimal128(123).little_endian_array() = {123, 0};

Source from the content-addressed store, hash-verified

106 /// uint64_t element are in native endian order.
107 /// For example, BasicDecimal128(123).little_endian_array() = {123, 0};
108 WordArray little_endian_array() const {
109 return bit_util::little_endian::FromNative(array_);
110 }
111
112 const uint8_t* native_endian_bytes() const {
113 return reinterpret_cast<const uint8_t*>(array_.data());

Callers 4

RoundedRightShiftMethod · 0.80
ToRealPositiveMethod · 0.80
CheckConstructFromMethod · 0.80

Calls 1

FromNativeFunction · 0.85

Tested by 2

CheckConstructFromMethod · 0.64