Lines Matching refs:size
124 pgrsSetDownloadSize(x) - known expected download size
125 pgrsSetUploadSize(x) - known expected upload size
290 curl_off_t size = cursize - startsize;
294 if(!limit || !size)
298 * 'minimum' is the number of milliseconds 'size' should take to download to
301 if(size < CURL_OFF_T_MAX/1000)
302 minimum = (timediff_t) (CURL_OFF_T_C(1000) * size / limit);
304 minimum = (timediff_t) (size / limit);
313 * last 'size' bytes.
328 CURLcode Curl_pgrsSetDownloadCounter(struct Curl_easy *data, curl_off_t size)
330 data->progress.downloaded = size;
359 void Curl_pgrsSetUploadCounter(struct Curl_easy *data, curl_off_t size)
361 data->progress.uploaded = size;
364 void Curl_pgrsSetDownloadSize(struct Curl_easy *data, curl_off_t size)
366 if(size >= 0) {
367 data->progress.size_dl = size;
376 void Curl_pgrsSetUploadSize(struct Curl_easy *data, curl_off_t size)
378 if(size >= 0) {
379 data->progress.size_ul = size;
389 static curl_off_t trspeed(curl_off_t size, /* number of bytes */
393 return size * 1000000;
394 else if(size < CURL_OFF_T_MAX/1000000)
395 return (size * 1000000) / us;
397 return size / (us / 1000000);
564 max5data(total_expected_transfer, max5[2]), /* total size */
566 max5data(data->progress.downloaded, max5[0]), /* rcvd size */
568 max5data(data->progress.uploaded, max5[1]), /* xfer size */