MCPcopy Create free account
hub / github.com/Tencent/UnLua / Construct

Method Construct

Plugins/UnLua/Source/UnLua/Private/Containers/LuaArray.h:395–403  ·  view source on GitHub ↗

* Construct n elements */

Source from the content-addressed store, hash-verified

393 * Construct n elements
394 */
395 FORCEINLINE void Construct(int32 Index, int32 Count = 1)
396 {
397 uint8* Dest = GetData(Index);
398 for (int32 i = 0; i < Count; ++i)
399 {
400 Inner->Initialize(Dest);
401 Dest += ElementSize;
402 }
403 }
404
405 /**
406 * Destruct n elements

Callers 1

Calls 1

InitializeMethod · 0.45

Tested by

no test coverage detected