| 189 | } |
| 190 | |
| 191 | static Timer* GetTimerFromHandle(HTimerWorld timer_world, HTimer handle) |
| 192 | { |
| 193 | uint16_t index = GetIndexFromHandle(handle); |
| 194 | Timer* timer = GetTimerFromIndex(timer_world, index); |
| 195 | if (!timer) |
| 196 | return 0; |
| 197 | if (timer->m_Handle != handle) |
| 198 | return 0; // Stale handle |
| 199 | return timer; |
| 200 | } |
| 201 | |
| 202 | static uint32_t CopyIndices(dmSet<uint16_t>& src, dmArray<uint16_t>& tgt) |
| 203 | { |
no test coverage detected