MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / total

Method total

3ds/source/backupsize.cpp:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50std::optional<u64> BackupSizeCache::total(u64 id, BackupKind kind)
51{
52 std::lock_guard<std::mutex> lock(mMutex);
53 auto it = mTotals.find(key(id, kind));
54 if (it == mTotals.end()) {
55 return std::nullopt;
56 }
57 return it->second;
58}
59
60std::optional<u64> BackupSizeCache::backupSize(const std::u16string& fullPath)
61{

Callers 1

refreshSelectedMethod · 0.45

Calls 3

keyFunction · 0.85
findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected