| 520 | |
| 521 | template <typename DType> |
| 522 | int PlainDecoder<DType>::Decode(T* buffer, int max_values) { |
| 523 | max_values = std::min(max_values, this->num_values_); |
| 524 | int bytes_consumed = |
| 525 | DecodePlain<T>(this->data_, this->len_, max_values, this->type_length_, buffer); |
| 526 | this->data_ += bytes_consumed; |
| 527 | this->len_ -= bytes_consumed; |
| 528 | this->num_values_ -= max_values; |
| 529 | return max_values; |
| 530 | } |
| 531 | |
| 532 | // PLAIN decoder implementation for BOOLEAN |
| 533 |