Lines Matching refs:ncopy
67 size_t ncopy = head_ptr_ + bytes_available_ - old_size; in Reserve() local
68 memcpy(&ring_[0] + old_size, &ring_[0], ncopy); in Reserve()
102 size_t ncopy = std::min(size, ring_.size() - head_ptr_); in Read() local
103 memcpy(data, &ring_[0] + head_ptr_, ncopy); in Read()
104 if (ncopy < size) { in Read()
105 memcpy(reinterpret_cast<char*>(data) + ncopy, in Read()
106 &ring_[0], size - ncopy); in Read()
122 size_t ncopy = std::min(size, ring_.size() - head_ptr_); in ReadWithCallback() local
123 size_t nsend = fsend(&ring_[0] + head_ptr_, ncopy); in ReadWithCallback()
125 if (ncopy == nsend && ncopy < size) { in ReadWithCallback()
126 size_t nsend2 = fsend(&ring_[0], size - ncopy); in ReadWithCallback()
143 size_t ncopy = std::min(ring_.size() - tail, size); in Write() local
144 memcpy(&ring_[0] + tail, data, ncopy); in Write()
145 if (ncopy < size) { in Write()
146 memcpy(&ring_[0], reinterpret_cast<const char*>(data) + ncopy, size - ncopy); in Write()
168 size_t ncopy = std::min(ring_.size() - tail, nbytes); in WriteWithCallback() local
169 size_t nrecv = frecv(&ring_[0] + tail, ncopy); in WriteWithCallback()
171 if (nrecv == ncopy && ncopy < nbytes) { in WriteWithCallback()
172 size_t nrecv2 = frecv(&ring_[0], nbytes - ncopy); in WriteWithCallback()