Lines Matching refs:pos_
107 pos_(0) { in MessageBuilder()
113 Vector<char> buf(log_->message_buffer_ + pos_, in Append()
114 Log::kMessageBufferSize - pos_); in Append()
119 DCHECK(pos_ <= Log::kMessageBufferSize); in Append()
124 Vector<char> buf(log_->message_buffer_ + pos_, in AppendVA()
125 Log::kMessageBufferSize - pos_); in AppendVA()
130 pos_ += result; in AppendVA()
132 pos_ = Log::kMessageBufferSize; in AppendVA()
134 DCHECK(pos_ <= Log::kMessageBufferSize); in AppendVA()
139 if (pos_ < Log::kMessageBufferSize) { in Append()
140 log_->message_buffer_[pos_++] = c; in Append()
142 DCHECK(pos_ <= Log::kMessageBufferSize); in Append()
216 if (pos_ + len > Log::kMessageBufferSize) { in AppendStringPart()
217 len = Log::kMessageBufferSize - pos_; in AppendStringPart()
221 Vector<char> buf(log_->message_buffer_ + pos_, in AppendStringPart()
222 Log::kMessageBufferSize - pos_); in AppendStringPart()
224 pos_ += len; in AppendStringPart()
225 DCHECK(pos_ <= Log::kMessageBufferSize); in AppendStringPart()
230 DCHECK(pos_ <= Log::kMessageBufferSize); in WriteToLogFile()
232 DCHECK(pos_ == 0 || log_->message_buffer_[pos_ - 1] != '\n'); in WriteToLogFile()
233 if (pos_ == Log::kMessageBufferSize) pos_--; in WriteToLogFile()
234 log_->message_buffer_[pos_++] = '\n'; in WriteToLogFile()
235 const int written = log_->WriteToFile(log_->message_buffer_, pos_); in WriteToLogFile()
236 if (written != pos_) { in WriteToLogFile()