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

Function TSet_ToArray

Plugins/UnLua/Source/UnLua/Private/BaseLib/LuaLib_Set.cpp:139–151  ·  view source on GitHub ↗

* @see FLuaSet::ToArray(...) */

Source from the content-addressed store, hash-verified

137 * @see FLuaSet::ToArray(...)
138 */
139static int32 TSet_ToArray(lua_State* L)
140{
141 int32 NumParams = lua_gettop(L);
142 if (NumParams != 1)
143 return luaL_error(L, "invalid parameters");
144
145 FLuaSet* Set = (FLuaSet*)(GetCppInstanceFast(L, 1));
146 TSet_Guard(L, Set);
147
148 void* Userdata = NewUserdataWithPadding(L, sizeof(FLuaArray), "TArray");
149 FLuaArray* Array = Set->ToArray(Userdata);
150 return 1;
151}
152
153/**
154 * GC function

Callers

nothing calls this directly

Calls 6

lua_gettopFunction · 0.85
luaL_errorFunction · 0.85
GetCppInstanceFastFunction · 0.85
TSet_GuardFunction · 0.85
NewUserdataWithPaddingFunction · 0.85
ToArrayMethod · 0.80

Tested by

no test coverage detected