| 2306 | |
| 2307 | protected: |
| 2308 | int DecodeRaw(uint8_t* out_buffer, int max_values) { |
| 2309 | const int values_to_decode = std::min(this->num_values_, max_values); |
| 2310 | if (ARROW_PREDICT_TRUE(values_to_decode > 0)) { |
| 2311 | ::arrow::util::internal::ByteStreamSplitDecode( |
| 2312 | this->data_, this->type_length_, values_to_decode, stride_, out_buffer); |
| 2313 | this->data_ += values_to_decode; |
| 2314 | this->num_values_ -= values_to_decode; |
| 2315 | this->len_ -= this->type_length_ * values_to_decode; |
| 2316 | } |
| 2317 | return values_to_decode; |
| 2318 | } |
| 2319 | |
| 2320 | uint8_t* EnsureDecodeBuffer(int64_t min_values) { |
| 2321 | const int64_t size = this->type_length_ * min_values; |
no test coverage detected