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

Method MoveToFront

engine/Poseidon/IO/FileServer.cpp:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void FileCache::MoveToFront(int index)
49{
50 SRef<FileInCache> temp = _cache[index];
51 _cache.Delete(index);
52 _cache.Insert(0, temp);
53}
54
55void FileCache::DeleteLast()
56{

Callers

nothing calls this directly

Calls 2

DeleteMethod · 0.45
InsertMethod · 0.45

Tested by

no test coverage detected