MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getHashCode

Method getHashCode

Source/Core/CtrlrPanel/CtrlrPanelResourceManager.cpp:198–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198int CtrlrPanelResourceManager::getHashCode (const String &resourceName, const bool preloadResource)
199{
200 CtrlrPanelResource *r = getResource(resourceName);
201
202 if (r)
203 {
204 if (preloadResource)
205 r->load();
206
207 return (r->getHashCode());
208 }
209
210 return (-1);
211}
212
213int CtrlrPanelResourceManager::getResourceIndex (const String &resourceName)
214{

Callers 4

addResourceMethod · 0.45
removeResourceMethod · 0.45
getResourceHashCodeMethod · 0.45

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected