Lines Matching refs:expected_size
431 curl_off_t expected_size = -1; in file_do() local
452 expected_size = statbuf.st_size; in file_do()
469 if(expected_size >= 0) { in file_do()
472 expected_size); in file_do()
506 Curl_pgrsSetDownloadSize(data, expected_size); in file_do()
530 if(data->state.resume_from <= expected_size) in file_do()
531 expected_size -= data->state.resume_from; in file_do()
540 expected_size = data->req.maxdownload; in file_do()
542 if(!fstated || (expected_size <= 0)) in file_do()
552 Curl_pgrsSetDownloadSize(data, expected_size); in file_do()
576 bytestoread = (expected_size < (curl_off_t)(xfer_blen-1)) ? in file_do()
577 curlx_sotouz(expected_size) : (xfer_blen-1); in file_do()
587 if(nread <= 0 || (size_known && (expected_size == 0))) in file_do()
591 expected_size -= nread; in file_do()