Lines Matching refs:ncopy
973 size_t ncopy = memlen; in write_data() local
976 size_t len = CURLMIN(ncopy, stream->len); in write_data()
982 ncopy -= len; in write_data()
985 if(ncopy) in write_data()
986 result = Curl_dyn_addn(&stream->overflow, buf, ncopy); in write_data()
1089 size_t ncopy; in cb_h3_recv_header() local
1092 ncopy = msnprintf(line, sizeof(line), "HTTP/3 %03d \r\n", status); in cb_h3_recv_header()
1093 result = write_data(stream, line, ncopy); in cb_h3_recv_header()
1221 size_t ncopy = CURLMIN(overlen, stream->len); in drain_overflow_buffer() local
1222 if(ncopy > 0) { in drain_overflow_buffer()
1223 memcpy(stream->mem, Curl_dyn_ptr(&stream->overflow), ncopy); in drain_overflow_buffer()
1224 stream->len -= ncopy; in drain_overflow_buffer()
1225 stream->mem += ncopy; in drain_overflow_buffer()
1226 stream->memlen += ncopy; in drain_overflow_buffer()
1227 if(ncopy != overlen) in drain_overflow_buffer()
1229 (void)Curl_dyn_tail(&stream->overflow, overlen - ncopy); in drain_overflow_buffer()
1231 return ncopy; in drain_overflow_buffer()