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

Method Add

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

* Add an element to the array * * @param Item - the element * @return - the index of the added element */

Source from the content-addressed store, hash-verified

103 * @return - the index of the added element
104 */
105 FORCEINLINE int32 Add(const void* Item)
106 {
107 const int32 Index = AddDefaulted();
108 uint8* Dest = GetData(Index);
109 Inner->Copy(Dest, Item);
110 return Index;
111 }
112
113 /**
114 * Add a unique element to the array

Callers 2

AddDefaultedMethod · 0.45
AddUninitializedMethod · 0.45

Calls 1

CopyMethod · 0.45

Tested by

no test coverage detected