Lines Matching refs:cur_puff_
173 cur_puff_ = std::next(puffs_.begin(), next_puff_idx); in Seek()
176 if (offset < cur_puff_->offset) { in Seek()
179 auto back_track_bytes = cur_puff_->offset - puff_pos_; in Seek()
181 if (cur_puff_ != puffs_.begin()) { in Seek()
189 puff_pos_ = cur_puff_->offset; in Seek()
208 if (cur_puff_ == puffs_.end()) { in Read()
215 if (puff_pos_ < cur_puff_->offset) { in Read()
255 TEST_AND_RETURN_FALSE(puff_pos_ <= cur_puff_->offset); in Read()
267 (length - bytes_read >= cur_puff_->length); in Read()
269 auto cur_puff_idx = std::distance(puffs_.begin(), cur_puff_); in Read()
271 !GetPuffCache(cur_puff_idx, cur_puff_->length, &puff_buffer_)) { in Read()
282 cur_puff_->length); in Read()
292 TEST_AND_RETURN_FALSE(cur_puff_->length == puff_writer.Size()); in Read()
299 std::min(length - bytes_read, cur_puff_->length - skip_bytes_); in Read()
309 if (puff_pos_ + skip_bytes_ == cur_puff_->offset + cur_puff_->length) { in Read()
313 cur_puff_++; in Read()
315 if (cur_puff_ == puffs_.end()) { in Read()
360 TEST_AND_RETURN_FALSE(puff_pos_ == cur_puff_->offset); in Write()
364 cur_puff_->length + extra_byte_ - skip_bytes_); in Write()
370 if (skip_bytes_ == cur_puff_->length + extra_byte_) { in Write()
378 BufferPuffReader puff_reader(puff_buffer_->data(), cur_puff_->length); in Write()
392 puff_buffer_->data()[cur_puff_->length] << (deflate_bit_pos_ & 7); in Write()
410 cur_puff_++; in Write()
412 if (cur_puff_ == puffs_.end()) { in Write()