MCPcopy Create free account
hub / github.com/comaps/comaps / GetDownloadSize

Method GetDownloadSize

libs/storage/queued_country.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67uint64_t QueuedCountry::GetDownloadSize() const
68{
69 uint64_t size;
70 if (m_fileType == MapFileType::Diff)
71 {
72 CHECK(m_diffsDataSource->SizeToDownloadFor(m_countryId, size), ());
73 return size;
74 }
75
76 return GetRemoteSize(*m_diffsDataSource, m_countryFile);
77}
78
79void QueuedCountry::OnCountryInQueue() const
80{

Callers 2

DownloadMethod · 0.80
DownloadMethod · 0.80

Calls 2

GetRemoteSizeFunction · 0.85
SizeToDownloadForMethod · 0.80

Tested by

no test coverage detected