write_idx_ 25 net/tools/balsa/simple_buffer.cc write_idx_(0), write_idx_ 31 net/tools/balsa/simple_buffer.cc : write_idx_(0), write_idx_ 48 net/tools/balsa/simple_buffer.cc return write_idx_ - read_idx_; write_idx_ 71 net/tools/balsa/simple_buffer.cc return (storage_size_ - write_idx_); write_idx_ 77 net/tools/balsa/simple_buffer.cc return (read_idx_ == write_idx_); write_idx_ 83 net/tools/balsa/simple_buffer.cc return ((write_idx_ == storage_size_) && (read_idx_ != write_idx_)); write_idx_ 91 net/tools/balsa/simple_buffer.cc bool has_room = ((storage_size_ - write_idx_) >= size); write_idx_ 95 net/tools/balsa/simple_buffer.cc memcpy(storage_ + write_idx_, bytes, size); write_idx_ 106 net/tools/balsa/simple_buffer.cc *ptr = storage_ + write_idx_; write_idx_ 117 net/tools/balsa/simple_buffer.cc *size = write_idx_ - read_idx_; write_idx_ 139 net/tools/balsa/simple_buffer.cc read_idx_ = write_idx_ = 0; write_idx_ 156 net/tools/balsa/simple_buffer.cc write_idx_ = read_size; write_idx_ 177 net/tools/balsa/simple_buffer.cc write_idx_ = read_size; write_idx_ 202 net/tools/balsa/simple_buffer.cc write_idx_ += amount_to_advance; write_idx_ 203 net/tools/balsa/simple_buffer.cc if (write_idx_ > storage_size_) { write_idx_ 204 net/tools/balsa/simple_buffer.cc write_idx_ = storage_size_; write_idx_ 29 net/tools/balsa/simple_buffer.h iterator end() { return storage_ + write_idx_; } write_idx_ 30 net/tools/balsa/simple_buffer.h const_iterator end() const { return storage_ + write_idx_; } write_idx_ 67 net/tools/balsa/simple_buffer.h int tmp_int = write_idx_; write_idx_ 68 net/tools/balsa/simple_buffer.h write_idx_ = other->write_idx_; write_idx_ 69 net/tools/balsa/simple_buffer.h other->write_idx_ = tmp_int; write_idx_ 82 net/tools/balsa/simple_buffer.h int write_idx_; write_idx_ 62 net/tools/flip_server/ring_buffer.cc this->buffer_[this->write_idx_] = *p; write_idx_ 64 net/tools/flip_server/ring_buffer.cc ++this->write_idx_; write_idx_ 65 net/tools/flip_server/ring_buffer.cc if (this->write_idx_ >= this->buffer_size_) { write_idx_ 66 net/tools/flip_server/ring_buffer.cc this->write_idx_ = 0; write_idx_ 77 net/tools/flip_server/ring_buffer.cc *ptr = buffer_.get() + write_idx_; write_idx_ 81 net/tools/flip_server/ring_buffer.cc } else if (read_idx_ > write_idx_) { write_idx_ 82 net/tools/flip_server/ring_buffer.cc *size = read_idx_ - write_idx_; write_idx_ 84 net/tools/flip_server/ring_buffer.cc *size = buffer_size_ - write_idx_; write_idx_ 95 net/tools/flip_server/ring_buffer.cc } else if (write_idx_ > read_idx_) { write_idx_ 96 net/tools/flip_server/ring_buffer.cc *size = write_idx_ - read_idx_; write_idx_ 147 net/tools/flip_server/ring_buffer.cc write_idx_ = 0; write_idx_ 167 net/tools/flip_server/ring_buffer.cc DCHECK_LE(read_idx_, write_idx_); write_idx_ 169 net/tools/flip_server/ring_buffer.cc if (read_idx_ < write_idx_) { write_idx_ 173 net/tools/flip_server/ring_buffer.cc write_idx_ = read_size; write_idx_ 174 net/tools/flip_server/ring_buffer.cc } else if (read_idx_ == write_idx_) { write_idx_ 178 net/tools/flip_server/ring_buffer.cc write_idx_ = 0; write_idx_ 184 net/tools/flip_server/ring_buffer.cc DCHECK_LE(size, buffer_size_ - write_idx_); write_idx_ 202 net/tools/flip_server/ring_buffer.cc write_idx_ += amount_to_produce; write_idx_ 203 net/tools/flip_server/ring_buffer.cc write_idx_ %= buffer_size_; write_idx_ 238 net/tools/flip_server/ring_buffer.cc write_idx_ = bytes_used_ % buffer_size_; write_idx_ 91 net/tools/flip_server/ring_buffer.h int write_idx() const { return write_idx_; } write_idx_ 97 net/tools/flip_server/ring_buffer.h int set_write_idx(int idx) { return write_idx_ = idx; } write_idx_ 104 net/tools/flip_server/ring_buffer.h int write_idx_;