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

Function GetIndexFromHandle

engine/script/src/script_timer.cpp:97–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 dmArray<TimerWorld*> g_Worlds;
96
97 static uint16_t GetIndexFromHandle(HTimer handle)
98 {
99 return (uint16_t)(handle & 0xffffu);
100 }
101
102 static HTimer MakeHandle(uint16_t generation, uint16_t lookup_index)
103 {

Callers 2

FreeTimerFunction · 0.85
GetTimerFromHandleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected