Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
48
void FileCache::MoveToFront(int index)
49
{
50
SRef<FileInCache> temp = _cache[index];
51
_cache.Delete(index);
52
_cache.Insert(0, temp);
53
}
54
55
void FileCache::DeleteLast()
56
{
Callers
nothing calls this directly
Calls
2
Delete
Method · 0.45
Insert
Method · 0.45
Tested by
no test coverage detected