Searched refs:bytes_to_copy (Results 1 – 3 of 3) sorted by relevance
/external/chromium/net/spdy/ |
D | spdy_http_stream.cc | 116 const int bytes_to_copy = std::min(buf_len, data->size()); in ReadResponseBody() local 117 memcpy(&(buf->data()[bytes_read]), data->data(), bytes_to_copy); in ReadResponseBody() 118 buf_len -= bytes_to_copy; in ReadResponseBody() 119 if (bytes_to_copy == data->size()) { in ReadResponseBody() 122 const int bytes_remaining = data->size() - bytes_to_copy; in ReadResponseBody() 124 memcpy(new_buffer->data(), &(data->data()[bytes_to_copy]), in ReadResponseBody() 129 bytes_read += bytes_to_copy; in ReadResponseBody()
|
D | spdy_proxy_client_socket.cc | 184 const int bytes_to_copy = std::min(user_buffer_->BytesRemaining(), in PopulateUserReadBuffer() local 186 memcpy(user_buffer_->data(), data->data(), bytes_to_copy); in PopulateUserReadBuffer() 187 user_buffer_->DidConsume(bytes_to_copy); in PopulateUserReadBuffer() 188 if (data->BytesRemaining() == bytes_to_copy) { in PopulateUserReadBuffer() 192 data->DidConsume(bytes_to_copy); in PopulateUserReadBuffer()
|
/external/chromium/chrome/browser/automation/ |
D | url_request_automation_job.cc | 314 const int bytes_to_copy = std::min(bytes.size(), pending_buf_size_); in OnDataAvailable() local 315 memcpy(pending_buf_->data(), &bytes[0], bytes_to_copy); in OnDataAvailable() 320 NotifyReadComplete(bytes_to_copy); in OnDataAvailable()
|