MCPcopy Create free account
hub / github.com/Gregwar/fatcat / enableCache

Method enableCache

src/core/FatSystem.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void FatSystem::enableCache()
53{
54 if (!cacheEnabled) {
55 cout << "Computing FAT cache..." << endl;
56 for (int cluster=0; cluster<totalClusters; cluster++) {
57 cache[cluster] = nextCluster(cluster);
58 }
59
60 cacheEnabled = true;
61 }
62}
63
64void FatSystem::enableWrite()
65{

Callers 1

chainsAnalysisMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected