| 2372 | |
| 2373 | protected: |
| 2374 | int DecodeRaw(uint8_t* out_buffer, int max_values) { |
| 2375 | const int values_to_decode = std::min(this->num_values_, max_values); |
| 2376 | if (ARROW_PREDICT_TRUE(values_to_decode > 0)) { |
| 2377 | ::arrow::util::internal::ByteStreamSplitDecode( |
| 2378 | this->data_, this->type_length_, values_to_decode, stride_, out_buffer); |
| 2379 | this->data_ += values_to_decode; |
| 2380 | this->num_values_ -= values_to_decode; |
| 2381 | this->len_ -= this->type_length_ * values_to_decode; |
| 2382 | } |
| 2383 | return values_to_decode; |
| 2384 | } |
| 2385 | |
| 2386 | uint8_t* EnsureDecodeBuffer(int64_t min_values) { |
| 2387 | const int64_t size = this->type_length_ * min_values; |
no test coverage detected