| 1024 | static constexpr int kValuesUnpacked = WorkingKernel::kValuesUnpacked; |
| 1025 | |
| 1026 | ARROW_FORCE_INLINE static const uint8_t* unpack(const uint8_t* in, unpacked_type* out) { |
| 1027 | using working_type = typename WorkingKernel::unpacked_type; |
| 1028 | |
| 1029 | working_type buffer[kValuesUnpacked] = {}; |
| 1030 | in = WorkingKernel::unpack(in, buffer); |
| 1031 | for (int k = 0; k < kValuesUnpacked; ++k) { |
| 1032 | out[k] = static_cast<unpacked_type>(buffer[k]); |
| 1033 | } |
| 1034 | return in; |
| 1035 | } |
| 1036 | }; |
| 1037 | |
| 1038 | /******************************* |