Searched refs:valid_bytes_ (Results 1 – 1 of 1) sorted by relevance
58 : data_(capacity), read_head_(0), valid_bytes_(0) {} in UnixSocketMessageBuffer()60 bool Empty() const { return valid_bytes_ == 0; } in Empty()62 bool HalfFull() const { return valid_bytes_ * 2 >= data_.size(); } in HalfFull()66 if (data_.size() - valid_bytes_ < aligned_len) { in StoreMessage()69 uint32_t write_head = (read_head_ + valid_bytes_) % data_.size(); in StoreMessage()78 valid_bytes_ += aligned_len; in StoreMessage()84 if (read_head_ + valid_bytes_ <= data_.size()) { in PeekData()85 return valid_bytes_; in PeekData()91 CHECK_GE(valid_bytes_, size); in CommitData()93 valid_bytes_ -= size; in CommitData()[all …]