| 1007 | static constexpr int kValuesUnpacked = WorkingKernel::kValuesUnpacked; |
| 1008 | |
| 1009 | ARROW_FORCE_INLINE static const uint8_t* unpack(const uint8_t* in, unpacked_type* out) { |
| 1010 | using working_type = typename WorkingKernel::unpacked_type; |
| 1011 | |
| 1012 | working_type buffer[kValuesUnpacked] = {}; |
| 1013 | in = WorkingKernel::unpack(in, buffer); |
| 1014 | for (int k = 0; k < kValuesUnpacked; ++k) { |
| 1015 | out[k] = static_cast<unpacked_type>(buffer[k]); |
| 1016 | } |
| 1017 | return in; |
| 1018 | } |
| 1019 | }; |
| 1020 | |
| 1021 | /******************************* |