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

Method Get

Assets/XLua/Src/ObjectTranslator.cs:893–904  ·  view source on GitHub ↗
(RealStatePtr L, int index, out T v)

Source from the content-addressed store, hash-verified

891 }
892
893 public void Get<T>(RealStatePtr L, int index, out T v)
894 {
895 Func<RealStatePtr, int, T> get_func;
896 if (tryGetGetFuncByType(typeof(T), out get_func))
897 {
898 v = get_func(L, index);
899 }
900 else
901 {
902 v = (T)GetObject(L, index, typeof(T));
903 }
904 }
905
906 public void PushByType<T>(RealStatePtr L, T v)
907 {

Callers 1

GetObjectMethod · 0.45

Calls 7

lua_typeMethod · 0.80
xlua_gettypeidMethod · 0.80
lua_touserdataMethod · 0.80
UnPackMethod · 0.80
lua_isint64Method · 0.80
lua_toint64Method · 0.80
lua_tonumberMethod · 0.80

Tested by

no test coverage detected