MCPcopy Create free account
hub / github.com/Tencent/xLua / GetParams

Method GetParams

Assets/XLua/Src/ObjectTranslator.cs:934–942  ·  view source on GitHub ↗
(RealStatePtr L, int index)

Source from the content-addressed store, hash-verified

932#endif
933
934 public T[] GetParams<T>(RealStatePtr L, int index)
935 {
936 T[] ret = new T[Math.Max(LuaAPI.lua_gettop(L) - index + 1, 0)];
937 for(int i = 0; i < ret.Length; i++)
938 {
939 Get(L, index + i, out ret[i]);
940 }
941 return ret;
942 }
943
944 public Array GetParams(RealStatePtr L, int index, Type type) //反射版本
945 {

Callers 1

CallMethod · 0.80

Calls 2

GetFunction · 0.85
lua_gettopMethod · 0.80

Tested by

no test coverage detected