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

Function CopyIndices

engine/script/src/script_timer.cpp:202–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 }
201
202 static uint32_t CopyIndices(dmSet<uint16_t>& src, dmArray<uint16_t>& tgt)
203 {
204 uint32_t size = src.Size();
205 if (size > tgt.Capacity())
206 {
207 tgt.SetCapacity(size);
208 }
209 tgt.SetSize(size);
210 for (uint32_t i = 0; i < size; ++i)
211 {
212 tgt[i] = src[i];
213 }
214 return size;
215 }
216
217 void UpdateTimers(HTimerWorld timer_world, float dt)
218 {

Callers 2

UpdateTimersFunction · 0.85
KillTimersFunction · 0.85

Calls 4

SizeMethod · 0.45
CapacityMethod · 0.45
SetCapacityMethod · 0.45
SetSizeMethod · 0.45

Tested by

no test coverage detected