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

Function ByteStreamSplitEncodeScalar

cpp/src/arrow/util/byte_stream_split_internal.h:434–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432
433template <int kNumStreams>
434void ByteStreamSplitEncodeScalar(const uint8_t* raw_values, int width,
435 const int64_t num_values, uint8_t* out) {
436 assert(width == kNumStreams);
437 std::array<uint8_t*, kNumStreams> dest_streams;
438 for (int stream = 0; stream < kNumStreams; ++stream) {
439 dest_streams[stream] = &out[stream * num_values];
440 }
441 DoSplitStreams(raw_values, kNumStreams, num_values, dest_streams.data());
442}
443
444// If changing this value, please check that TestByteStreamSplitLargeWidth still
445// exercises the slow path.

Callers

nothing calls this directly

Calls 2

DoSplitStreamsFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected