| 412 | |
| 413 | template <int kNumStreams> |
| 414 | void ByteStreamSplitEncodeScalar(const uint8_t* raw_values, int width, |
| 415 | const int64_t num_values, uint8_t* out) { |
| 416 | assert(width == kNumStreams); |
| 417 | std::array<uint8_t*, kNumStreams> dest_streams; |
| 418 | for (int stream = 0; stream < kNumStreams; ++stream) { |
| 419 | dest_streams[stream] = &out[stream * num_values]; |
| 420 | } |
| 421 | DoSplitStreams(raw_values, kNumStreams, num_values, dest_streams.data()); |
| 422 | } |
| 423 | |
| 424 | inline void ByteStreamSplitEncodeScalarDynamic(const uint8_t* raw_values, int width, |
| 425 | const int64_t num_values, uint8_t* out) { |
nothing calls this directly
no test coverage detected