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

Method forceToCache

Telegram/SourceFiles/data/data_document.cpp:1013–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1011}
1012
1013void DocumentData::forceToCache(bool force) {
1014 if (force) {
1015 _flags |= Flag::ForceToCache;
1016 } else {
1017 _flags &= ~Flag::ForceToCache;
1018 }
1019}
1020
1021bool DocumentData::saveToCache() const {
1022 return (size < Storage::kMaxFileInMemory)

Callers 5

ParseAttachBotFunction · 0.80
cacheSoundMethod · 0.80
ensureWantedMethod · 0.80
requestListMethod · 0.80
rowPaintIconMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected