| 624 | |
| 625 | template <typename DecimalType> |
| 626 | Status RawBytesToDecimalBytes(const uint8_t* value, int32_t byte_width, |
| 627 | uint8_t* out_buf) { |
| 628 | ARROW_ASSIGN_OR_RAISE(DecimalType t, DecimalType::FromBigEndian(value, byte_width)); |
| 629 | t.ToBytes(out_buf); |
| 630 | return ::arrow::Status::OK(); |
| 631 | } |
| 632 | |
| 633 | template <typename DecimalArrayType, |
| 634 | typename = ::arrow::enable_if_decimal<typename DecimalArrayType::TypeClass>> |