Home
last modified time | relevance | path

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

/external/libchrome/mojo/core/
Dchannel.cc518 return num_occupied_bytes_ - num_discarded_bytes_; in num_occupied_bytes()
524 if (num_occupied_bytes_ + num_bytes > size_) { in Reserve()
525 size_ = std::max(size_ * 2, num_occupied_bytes_ + num_bytes); in Reserve()
527 memcpy(new_data, data_, num_occupied_bytes_); in Reserve()
532 return data_ + num_occupied_bytes_; in Reserve()
537 DCHECK_LE(num_occupied_bytes_ + num_bytes, size_); in Claim()
538 num_occupied_bytes_ += num_bytes; in Claim()
545 DCHECK_LE(num_discarded_bytes_ + num_bytes, num_occupied_bytes_); in Discard()
548 if (num_discarded_bytes_ == num_occupied_bytes_) { in Discard()
551 num_occupied_bytes_ = 0; in Discard()
[all …]