| 40 | /// bits. |
| 41 | template <typename Uint> |
| 42 | ARROW_FORCE_INLINE void unpack_full(const uint8_t* in, Uint* out, int batch_size) { |
| 43 | if constexpr (ARROW_LITTLE_ENDIAN == 1) { |
| 44 | std::memcpy(out, in, batch_size * sizeof(Uint)); |
| 45 | } else { |
| 46 | using bit_util::FromLittleEndian; |
| 47 | using util::SafeLoadAs; |
| 48 | |
| 49 | for (int k = 0; k < batch_size; k += 1) { |
| 50 | out[k] = FromLittleEndian(SafeLoadAs<Uint>(in + (k * sizeof(Uint)))); |
| 51 | } |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | /// Compute the maximum spread in bytes that a packed integer can cover. |
| 56 | /// |
no test coverage detected