Lines Matching refs:nread

353   size_t nread;  in on_data_chunk_recv()  local
374 nread = MIN(stream->len, len); in on_data_chunk_recv()
375 memcpy(&stream->mem[stream->memlen], data, nread); in on_data_chunk_recv()
377 stream->len -= nread; in on_data_chunk_recv()
378 stream->memlen += nread; in on_data_chunk_recv()
386 nread, stream_id, in on_data_chunk_recv()
390 if(nread < len) { in on_data_chunk_recv()
391 stream->pausedata = data + nread; in on_data_chunk_recv()
392 stream->pauselen = len - nread; in on_data_chunk_recv()
395 len - nread, stream_id)); in on_data_chunk_recv()
596 size_t nread; in data_source_read_callback() local
618 nread = MIN(stream->upload_len, length); in data_source_read_callback()
619 if(nread > 0) { in data_source_read_callback()
620 memcpy(buf, stream->upload_mem, nread); in data_source_read_callback()
621 stream->upload_mem += nread; in data_source_read_callback()
622 stream->upload_len -= nread; in data_source_read_callback()
623 stream->upload_left -= nread; in data_source_read_callback()
628 else if(nread == 0) in data_source_read_callback()
633 nread, stream_id)); in data_source_read_callback()
635 return nread; in data_source_read_callback()
804 ssize_t nread; in http2_recv() local
860 nread = MIN(len, stream->pauselen); in http2_recv()
861 memcpy(mem, stream->pausedata, nread); in http2_recv()
863 stream->pausedata += nread; in http2_recv()
864 stream->pauselen -= nread; in http2_recv()
866 infof(data, "%zu data bytes written\n", nread); in http2_recv()
876 nread, stream->stream_id); in http2_recv()
877 return nread; in http2_recv()
900 nread = ((Curl_recv *)httpc->recv_underlying)( in http2_recv()
908 if(nread == -1) { in http2_recv()
914 if(nread == 0) { in http2_recv()
920 DEBUGF(infof(data, "nread=%zd\n", nread)); in http2_recv()
922 httpc->inbuflen = nread; in http2_recv()
926 nread = httpc->inbuflen - httpc->nread_inbuf; in http2_recv()
930 nread)); in http2_recv()
932 rv = nghttp2_session_mem_recv(httpc->h2, (const uint8_t *)inbuf, nread); in http2_recv()
941 if(nread == rv) { in http2_recv()
1246 const char *mem, size_t nread) in Curl_http2_switched() argument
1298 if(H2_BUFSIZE < nread) { in Curl_http2_switched()
1301 H2_BUFSIZE, nread); in Curl_http2_switched()
1307 nread); in Curl_http2_switched()
1309 memcpy(httpc->inbuf, mem, nread); in Curl_http2_switched()
1310 httpc->inbuflen = nread; in Curl_http2_switched()
1323 if((ssize_t)nread == nproc) { in Curl_http2_switched()