Lines Matching refs:read_pos_
97 *size = read_head_->write_pos_ - read_head_->read_pos_; in Peek()
98 return read_head_->data_ + read_head_->read_pos_; in Peek()
109 size[i] = pos->write_pos_ - pos->read_pos_; in PeekMultiple()
111 out[i] = pos->data_ + pos->read_pos_; in PeekMultiple()
249 while (read_head_->read_pos_ != 0 && in TryMoveReadHead()
250 read_head_->read_pos_ == read_head_->write_pos_) { in TryMoveReadHead()
252 read_head_->read_pos_ = 0; in TryMoveReadHead()
270 CHECK_LE(read_head_->read_pos_, read_head_->write_pos_); in Read()
271 size_t avail = read_head_->write_pos_ - read_head_->read_pos_; in Read()
277 memcpy(out + offset, read_head_->data_ + read_head_->read_pos_, avail); in Read()
278 read_head_->read_pos_ += avail; in Read()
310 CHECK_EQ(cur->write_pos_, cur->read_pos_); in FreeEmpty()
327 CHECK_LE(current->read_pos_, current->write_pos_); in IndexOf()
328 size_t avail = current->write_pos_ - current->read_pos_; in IndexOf()
333 char* tmp = current->data_ + current->read_pos_; in IndexOf()
350 if (current->read_pos_ + avail == current->len_) { in IndexOf()
467 while (read_head_->read_pos_ != read_head_->write_pos_) { in Reset()
468 CHECK(read_head_->write_pos_ > read_head_->read_pos_); in Reset()
470 length_ -= read_head_->write_pos_ - read_head_->read_pos_; in Reset()
472 read_head_->read_pos_ = 0; in Reset()