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

Function GetVersion

engine/resource/src/resource.cpp:1442–1450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1440}
1441
1442uint16_t GetVersion(HFactory factory, void* resource)
1443{
1444 uint64_t* resource_hash = factory->m_ResourceToHash->Get((uintptr_t) resource);
1445 assert(resource_hash);
1446
1447 ResourceDescriptor* rd = factory->m_Resources->Get(*resource_hash);
1448 assert(rd);
1449 return rd->m_Version;
1450}
1451
1452// For unit testing
1453uint32_t GetRefCount(HFactory factory, void* resource)

Callers 4

Buffer_gcFunction · 0.85
LuaHBufferMethod · 0.85
CreateBufferFunction · 0.85
SetBufferFunction · 0.85

Calls 2

assertFunction · 0.50
GetMethod · 0.45

Tested by

no test coverage detected