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

Method Find

engine/Poseidon/IO/FileServer.cpp:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33FileCache::~FileCache() = default;
34
35int FileCache::Find(const char* name)
36{
37 for (int i = 0; i < _cache.Size(); i++)
38 {
39 const FileInCache* file = _cache[i];
40 if (!strcmp(file->_name, name))
41 {
42 return i;
43 }
44 }
45 return -1;
46}
47
48void FileCache::MoveToFront(int index)
49{

Callers 15

TransferStringMethod · 0.45
SerializeBinMethod · 0.45
LogFileOpMethod · 0.45
DecodePcmMethod · 0.45
OnStartElementMethod · 0.45
OnStartElementMethod · 0.45
OnStartElementMethod · 0.45

Calls 1

SizeMethod · 0.45

Tested by 3

OnStartElementMethod · 0.36
OnStartElementMethod · 0.36
OnStartElementMethod · 0.36