Home
last modified time | relevance | path

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

/external/libchrome/mojo/core/
Dchannel.cc515 const char* occupied_bytes() const { return data_ + num_discarded_bytes_; } in occupied_bytes()
518 return num_occupied_bytes_ - num_discarded_bytes_; in num_occupied_bytes()
545 DCHECK_LE(num_discarded_bytes_ + num_bytes, num_occupied_bytes_); in Discard()
546 num_discarded_bytes_ += num_bytes; in Discard()
548 if (num_discarded_bytes_ == num_occupied_bytes_) { in Discard()
550 num_discarded_bytes_ = 0; in Discard()
554 if (num_discarded_bytes_ > kMaxUnusedReadBufferCapacity) { in Discard()
557 size_t num_preserved_bytes = num_occupied_bytes_ - num_discarded_bytes_; in Discard()
561 memcpy(new_data, data_ + num_discarded_bytes_, num_preserved_bytes); in Discard()
564 num_discarded_bytes_ = 0; in Discard()
[all …]