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

Method unpack

cpp/src/arrow/util/bpacking_simd_kernel_internal.h:1026–1035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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/*******************************

Callers

nothing calls this directly

Calls 1

unpackFunction · 0.70

Tested by

no test coverage detected