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

Method Remove

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

* Remove the i'th element * * @param Index - the index */

Source from the content-addressed store, hash-verified

194 * @param Index - the index
195 */
196 FORCEINLINE void Remove(int32 Index)
197 {
198 if (IsValidIndex(Index))
199 {
200 Destruct(Index);
201 ScriptArray->Remove(Index, 1, ElementSize ALIGNMENT_PLACEHOLDER);
202 }
203 }
204
205 /**
206 * Remove all elements equals to 'Item'

Callers 1

ResizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected