Lines Matching refs:tail_
80 destBufs[0].iov_base = buffer_ + tail_; in Read()
81 if (tail_ + len < bufSize_) { in Read()
84 destBufs[1].iov_base = buffer_ + tail_ + len; in Read()
88 destBufs[0].iov_len = bufSize_ - tail_; in Read()
90 destBufs[1].iov_len = len + tail_ - bufSize_; in Read()
95 tail_ += static_cast<std::size_t>(ret); in Read()
96 while (tail_ >= bufSize_) { in Read()
97 tail_ -= bufSize_; in Read()
192 if (tail_ + len < bufSize_) { in Put()
194 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str, len) != EOK) { in Put()
199 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str, bufSize_ - tail_) != EOK) { in Put()
202 if (memcpy_s(buffer_, bufSize_, str + bufSize_ - tail_, len + tail_ - bufSize_) != EOK) { in Put()
207 tail_ += len; in Put()
208 while (tail_ >= bufSize_) { in Put()
209 tail_ -= bufSize_; in Put()
231 if (tail_ + len < bufSize_) { in Put()
233 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str.c_str(), len) != EOK) { in Put()
238 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str.c_str(), bufSize_ - tail_) != EOK) { in Put()
241 … if (memcpy_s(buffer_, bufSize_, str.c_str() + bufSize_ - tail_, len + tail_ - bufSize_) != EOK) { in Put()
246 tail_ += len; in Put()
247 while (tail_ >= bufSize_) { in Put()
248 tail_ -= bufSize_; in Put()
318 tail_ = dataSize; in Resize()