MCPcopy Create free account
hub / github.com/WheretIB/nullc / RemoveBytecode

Method RemoveBytecode

NULLC/BinaryCache.cpp:80–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void BinaryCache::RemoveBytecode(const char* path)
81{
82 unsigned int hash = GetStringHash(path);
83 unsigned int i = 0;
84 for(; i < cache.size(); i++)
85 {
86 if(hash == cache[i].nameHash)
87 break;
88 }
89 if(i == cache.size())
90 return;
91
92 NULLC::dealloc((void*)cache[i].name);
93 delete[] cache[i].binary;
94
95 cache[i] = cache.back();
96 cache.pop_back();
97}
98
99const char* BinaryCache::EnumerateModules(unsigned id)
100{

Callers

nothing calls this directly

Calls 3

GetStringHashFunction · 0.70
sizeMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected