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

Method Set

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

* Set new value for the i'th element * * @param Index - the index * @param Item - the element to be set */

Source from the content-addressed store, hash-verified

292 * @param Item - the element to be set
293 */
294 FORCEINLINE void Set(int32 Index, const void* Item)
295 {
296 if (IsValidIndex(Index))
297 {
298 Inner->Copy(GetData(Index), Item);
299 }
300 }
301
302 /**
303 * Swap two elements

Callers 2

GuardEnterMethod · 0.45
TArray_SetFunction · 0.45

Calls 1

CopyMethod · 0.45

Tested by

no test coverage detected