Lines Matching full:count_
115 count_(0) {
133 // need to adjust the count_, as SafeSPrintf() copies snprintf() in not
142 return count_ == static_cast<size_t>(kSSizeMax - 1);
150 DEBUG_CHECK(count_ < kSSizeMax);
151 return static_cast<ssize_t>(count_);
154 // Emits one |ch| character into the |buffer_| and updates the |count_| of
157 // N.B. |count_| increases even if no characters have been written. This is
161 if (size_ >= 1 && count_ < size_) {
162 buffer_[count_] = ch;
165 // |count_| still needs to be updated, even if the buffer has been
173 // |count_| will also be incremented by the number of bytes that were meant
176 // Returns "false", iff the the |buffer_| filled up (i.e. |count_|
226 // Increments |count_| by |inc| unless this would cause |count_| to
228 // it then clamps |count_| to |kSSizeMax-1|.
236 if (count_ > kSSizeMax - 1 - inc) {
237 count_ = kSSizeMax - 1;
240 count_ += inc;
245 // Convenience method for the common case of incrementing |count_| by one.
251 // at |buffer_| + |count_|, but could be before that if truncation
255 size_t idx = count_;
272 size_t count_;
341 size_t start = count_;
346 if (count_ >= size_) {
361 --count_;
362 } else if (count_ - size_ > 1) {
363 // Need to increment either |count_| or |discarded| to make progress.
367 // discarding to non-discarding). |count_| needs to always stay
369 --count_;