MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / bigFileBaseCacheKey

Method bigFileBaseCacheKey

Telegram/SourceFiles/data/data_document.cpp:1000–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998}
999
1000Storage::Cache::Key DocumentData::bigFileBaseCacheKey() const {
1001 return hasRemoteLocation()
1002 ? StorageFileLocation(
1003 _dc,
1004 session().userId(),
1005 MTP_inputDocumentFileLocation(
1006 MTP_long(id),
1007 MTP_long(_access),
1008 MTP_bytes(_fileReference),
1009 MTP_string())).bigFileBaseCacheKey()
1010 : Storage::Cache::Key();
1011}
1012
1013void DocumentData::forceToCache(bool force) {
1014 if (force) {

Callers 11

baseCacheKeyMethod · 0.45
checkMethod · 0.45
doneMethod · 0.45
CanMethod · 0.45
cacheKeyMethod · 0.45
LottieFromDocumentFunction · 0.45
HasLottieThumbnailFunction · 0.45
LottieThumbnailFunction · 0.45
HasWebmThumbnailFunction · 0.45
effectPlayerMethod · 0.45

Calls 6

StorageFileLocationClass · 0.85
MTP_longFunction · 0.85
MTP_bytesFunction · 0.85
MTP_stringFunction · 0.85
KeyClass · 0.70
userIdMethod · 0.45

Tested by

no test coverage detected