| 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 | { |
no test coverage detected