| 427 | decltype(bit_width) bit_width_; |
| 428 | |
| 429 | auto OnRleRun(RleRun run) { |
| 430 | rle_decoder_ptr_->Reset(run, bit_width_); |
| 431 | |
| 432 | const auto n_decoded = decoded_ptr_->size(); |
| 433 | const auto n_to_decode = rle_decoder_ptr_->remaining(); |
| 434 | decoded_ptr_->resize(n_decoded + n_to_decode); |
| 435 | EXPECT_EQ(rle_decoder_ptr_->GetBatch(decoded_ptr_->data() + n_decoded, n_to_decode, |
| 436 | bit_width_), |
| 437 | n_to_decode); |
| 438 | EXPECT_EQ(rle_decoder_ptr_->remaining(), 0); |
| 439 | |
| 440 | return RleBitPackedParser::ControlFlow::Continue; |
| 441 | } |
| 442 | |
| 443 | auto OnBitPackedRun(BitPackedRun run) { |
| 444 | bit_packed_decoder_ptr_->Reset(run, bit_width_); |