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

Method SizeFor

libs/storage/diff_scheme/diffs_data_source.cpp:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool DiffsDataSource::SizeFor(storage::CountryId const & countryId, uint64_t & size) const
40{
41 CHECK_THREAD_CHECKER(m_threadChecker, ());
42
43 if (m_status != Status::Available)
44 return false;
45
46 auto const it = m_diffs.find(countryId);
47 if (it == m_diffs.cend())
48 return false;
49
50 size = it->second.m_size;
51 return true;
52}
53
54bool DiffsDataSource::SizeToDownloadFor(storage::CountryId const & countryId, uint64_t & size) const
55{

Callers 1

GetRemoteSizeFunction · 0.80

Calls 2

findMethod · 0.45
cendMethod · 0.45

Tested by

no test coverage detected