Lines Matching defs:capacity_
170 : capacity_(capacity),
171 buffer_(capacity_ + 1), // 1 for sentinel
184 std::min(capacity_ - Size(), buffer_.size() - tail_));
218 DCHECK_LE(advance + Size(), capacity_);
223 : capacity_(capacity), head_of_first_buffer_(0), tail_of_last_buffer_(0) {}
234 capacity_ - head_of_first_buffer_);
246 DCHECK(IsEmpty() || tail_of_last_buffer_ == capacity_);
248 buffers_.push_back(new IOBufferWithSize(capacity_));
257 DCHECK_LE(size + head_of_first_buffer_, capacity_);
260 if (head_of_first_buffer_ == capacity_) {
274 size_t num_bytes_to_copy = std::min(size, capacity_ - tail_of_last_buffer_);