MCPcopy Create free account
hub / github.com/defold/defold / GetFromCache

Function GetFromCache

engine/modelc/src/modelimporter_jni.cpp:44–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42
43template<typename DefoldType>
44static jobject GetFromCache(dmHashTable64<jobject>& cache, DefoldType* key)
45{
46 jobject* pobj = cache.Get((uintptr_t)key);
47 if (!pobj)
48 return 0;
49 return *pobj;
50}
51
52
53// TODO: Move to jni_util.h

Callers 2

CreateImagesArrayFunction · 0.70
CreateTexturesArrayFunction · 0.70

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected