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

Function FindIndex

engine/modelc/src/modelimporter_gltf.cpp:485–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483
484template<typename T>
485static uint32_t FindIndex(T* base_pointer, T* pointer)
486{
487 if (!pointer)
488 return INVALID_INDEX;
489 return (uint32_t)(pointer - base_pointer);
490}
491
492static char* CreateNameFromHash(const char* prefix, uint32_t hash)
493{

Callers 1

LoadPrimitivesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected