Lines Matching refs:tail_
92 destBufs[0].iov_base = buffer_ + tail_;
93 if (tail_ + len < bufSize_) {
96 destBufs[1].iov_base = buffer_ + tail_ + len;
100 destBufs[0].iov_len = bufSize_ - tail_;
102 destBufs[1].iov_len = len + tail_ - bufSize_;
107 tail_ += static_cast<std::size_t>(ret);
108 while (tail_ >= bufSize_) {
109 tail_ -= bufSize_;
213 if (tail_ + len < bufSize_) {
215 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str, len) != EOK) {
220 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str, bufSize_ - tail_) != EOK) {
223 if (memcpy_s(buffer_, bufSize_, str + bufSize_ - tail_, len + tail_ - bufSize_) != EOK) {
228 tail_ += len;
229 while (tail_ >= bufSize_) {
230 tail_ -= bufSize_;
255 if (tail_ + len < bufSize_) {
257 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str.c_str(), len) != EOK) {
262 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str.c_str(), bufSize_ - tail_) != EOK) {
265 if (memcpy_s(buffer_, bufSize_, str.c_str() + bufSize_ - tail_, len + tail_ - bufSize_) != EOK) {
270 tail_ += len;
271 while (tail_ >= bufSize_) {
272 tail_ -= bufSize_;
351 tail_ = dataSize;