| 60 | } |
| 61 | |
| 62 | const char* BinaryCache::GetBytecode(const char* path) |
| 63 | { |
| 64 | unsigned int hash = GetStringHash(path); |
| 65 | if(hash == lastHash) |
| 66 | return lastBytecode; |
| 67 | |
| 68 | unsigned int i = 0; |
| 69 | for(; i < cache.size(); i++) |
| 70 | { |
| 71 | if(hash == cache[i].nameHash) |
| 72 | break; |
| 73 | } |
| 74 | if(i != cache.size()) |
| 75 | return cache[i].binary; |
| 76 | |
| 77 | return NULL; |
| 78 | } |
| 79 | |
| 80 | void BinaryCache::RemoveBytecode(const char* path) |
| 81 | { |
nothing calls this directly
no test coverage detected