Home
last modified time | relevance | path

Searched refs:write_idx_ (Results 1 – 4 of 4) sorted by relevance

/external/chromium/net/tools/flip_server/
Dsimple_buffer.cc25 write_idx_(0), in SimpleBuffer()
31 : write_idx_(0), in SimpleBuffer()
43 return write_idx_ - read_idx_; in ReadableBytes()
66 return (storage_size_ - write_idx_); in BytesFree()
72 return (read_idx_ == write_idx_); in Empty()
78 return ((write_idx_ == storage_size_) && (read_idx_ != write_idx_)); in Full()
86 bool has_room = ((storage_size_ - write_idx_) >= size); in Write()
90 memcpy(storage_ + write_idx_, bytes, size); in Write()
101 *ptr = storage_ + write_idx_; in GetWritablePtr()
112 *size = write_idx_ - read_idx_; in GetReadablePtr()
[all …]
Dring_buffer.cc15 write_idx_(0) { in RingBuffer()
85 this->buffer_[this->write_idx_] = *p; in Write()
87 ++this->write_idx_; in Write()
88 if (this->write_idx_ >= this->buffer_size_) { in Write()
89 this->write_idx_ = 0; in Write()
102 *ptr = buffer_.get() + write_idx_; in GetWritablePtr()
106 } else if (read_idx_ > write_idx_) { in GetWritablePtr()
107 *size = read_idx_ - write_idx_; in GetWritablePtr()
109 *size = buffer_size_ - write_idx_; in GetWritablePtr()
122 } else if (write_idx_ > read_idx_) { in GetReadablePtr()
[all …]
Dsimple_buffer.h31 iterator end() { return storage_ + write_idx_; } in end()
32 const_iterator end() const { return storage_ + write_idx_; } in end()
69 int tmp_int = write_idx_; in Swap()
70 write_idx_ = other->write_idx_; in Swap()
71 other->write_idx_ = tmp_int; in Swap()
84 int write_idx_; variable
Dring_buffer.h91 int write_idx() const { return write_idx_; } in write_idx()
97 int set_write_idx(int idx) { return write_idx_ = idx; } in set_write_idx()
104 int write_idx_; variable