MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / CURLOnProgress

Method CURLOnProgress

Sources/Shared/IO/WebRequest.cpp:2616–2626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2614 }
2615
2616 std::int32_t WebResponseCURL::CURLOnProgress(curl_off_t total)
2617 {
2618 if (_knownDownloadSize != total) {
2619 if (_request.GetStorage() == WebRequest::Storage::Memory) {
2620 PreAllocateBuffer(static_cast<std::size_t>(total));
2621 }
2622 _knownDownloadSize = total;
2623 }
2624
2625 return 0;
2626 }
2627
2628 std::int64_t WebResponseCURL::GetContentLength() const
2629 {

Callers 1

CURLXferInfoFunction · 0.80

Calls 1

GetStorageMethod · 0.45

Tested by

no test coverage detected