| 453 | decltype(bit_width) bit_width_; |
| 454 | |
| 455 | auto OnRleRun(RleRun run) { |
| 456 | rle_decoder_ptr_->Reset(run, bit_width_); |
| 457 | |
| 458 | const auto n_decoded = decoded_ptr_->size(); |
| 459 | const auto n_to_decode = rle_decoder_ptr_->remaining(); |
| 460 | decoded_ptr_->resize(n_decoded + n_to_decode); |
| 461 | EXPECT_EQ(rle_decoder_ptr_->GetBatch(decoded_ptr_->data() + n_decoded, n_to_decode, |
| 462 | bit_width_), |
| 463 | n_to_decode); |
| 464 | EXPECT_EQ(rle_decoder_ptr_->remaining(), 0); |
| 465 | |
| 466 | return RleBitPackedParser::ControlFlow::Continue; |
| 467 | } |
| 468 | |
| 469 | auto OnBitPackedRun(BitPackedRun run) { |
| 470 | bit_packed_decoder_ptr_->Reset(run, bit_width_); |