Searched refs:read_idx_ (Results 1 – 4 of 4) sorted by relevance
14 read_idx_(0), in RingBuffer()81 } else if (read_idx_ > write_idx_) { in GetWritablePtr()82 *size = read_idx_ - write_idx_; in GetWritablePtr()91 *ptr = buffer_.get() + read_idx_; in GetReadablePtr()95 } else if (write_idx_ > read_idx_) { in GetReadablePtr()96 *size = write_idx_ - read_idx_; in GetReadablePtr()98 *size = buffer_size_ - read_idx_; in GetReadablePtr()133 *p = this->buffer_[this->read_idx_]; in Read()135 ++this->read_idx_; in Read()136 if (this->read_idx_ >= this->buffer_size_) { in Read()[all …]
90 int read_idx() const { return read_idx_; } in read_idx()96 int set_read_idx(int idx) { return read_idx_ = idx; } in set_read_idx()103 int read_idx_; variable
26 read_idx_(0), in SimpleBuffer()32 read_idx_(0), in SimpleBuffer()48 return write_idx_ - read_idx_; in ReadableBytes()77 return (read_idx_ == write_idx_); in Empty()83 return ((write_idx_ == storage_size_) && (read_idx_ != write_idx_)); in Full()116 *ptr = storage_ + read_idx_; in GetReadablePtr()117 *size = write_idx_ - read_idx_; in GetReadablePtr()139 read_idx_ = write_idx_ = 0; in Clear()155 read_idx_ = 0; in Reserve()176 read_idx_ = 0; in Reserve()[all …]
26 iterator begin() { return storage_ + read_idx_; } in begin()27 const_iterator begin() const { return storage_ + read_idx_; } in begin()71 tmp_int = read_idx_; in Swap()72 read_idx_ = other->read_idx_; in Swap()73 other->read_idx_ = tmp_int; in Swap()83 int read_idx_; variable