MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / SetResume

Method SetResume

framework/data_source/curl/CURLConnection.cpp:414–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414void CURLConnection::SetResume(int64_t pos)
415{
416 mFilePos = pos;
417
418 if (sendRange && this->mFilePos == 0) {
419 curl_easy_setopt(mHttp_handle, CURLOPT_RANGE, "0-");
420 } else {
421 curl_easy_setopt(mHttp_handle, CURLOPT_RANGE, NULL);
422 sendRange = 0;
423 }
424
425 curl_easy_setopt(mHttp_handle, CURLOPT_RESUME_FROM_LARGE, (curl_off_t) mFilePos);
426}
427
428void CURLConnection::start()
429{

Callers 4

curl_connectMethod · 0.45
SeekMethod · 0.45
curl_connectMethod · 0.45
SeekMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected