MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / FlushBank

Method FlushBank

engine/Poseidon/IO/FileServer.cpp:196–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void FileCache::FlushBank(QFBank* bank)
197{
198 // release all files from this bank
199
200 for (int i = 0; i < _cache.Size(); i++)
201 {
202 const FileInCache* file = _cache[i];
203 const QIFStreamB& stream = file->_data;
204 if (!stream.IsFromBank(bank))
205 {
206 continue;
207 }
208 _cache.Delete(i);
209 i--;
210 }
211}
212
213DEFINE_FAST_ALLOCATOR(FileInCache)
214

Callers 3

PreloadMethod · 0.45
RemoveBankFunction · 0.45
GFileServer_FlushBankFunction · 0.45

Calls 3

SizeMethod · 0.45
IsFromBankMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected