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

Method unpack

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

unpackFunction · 0.70

Tested by

no test coverage detected