Lines Matching refs:bytes_to_copy
126 size_t bytes_to_copy = static_cast<size_t>(length) > read_buffer_.length() ?
128 memcpy(buffer->data(), read_buffer_.data(), bytes_to_copy);
129 if (read_buffer_.length() > bytes_to_copy)
130 read_buffer_ = read_buffer_.substr(bytes_to_copy);
133 return bytes_to_copy;
239 size_t bytes_to_copy =
242 memcpy(read_request.buffer->data(), read_buffer_.data(), bytes_to_copy);
243 if (read_buffer_.length() > bytes_to_copy)
244 read_buffer_ = read_buffer_.substr(bytes_to_copy);
247 read_request.callback.Run(bytes_to_copy);