static int _m_ReadBytes(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.Utils.ByteBuffer gen_to_be_invoked = (FairyGUI.Utils.ByteBuffer)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _count = LuaAPI.xlua_tointeger(L, 2); byte[] gen_ret = gen_to_be_invoked.ReadBytes( _count); LuaAPI.lua_pushstring(L, gen_ret); return(1); } if (gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { byte[] _output = LuaAPI.lua_tobytes(L, 2); int _destIndex = LuaAPI.xlua_tointeger(L, 3); int _count = LuaAPI.xlua_tointeger(L, 4); byte[] gen_ret = gen_to_be_invoked.ReadBytes( _output, _destIndex, _count); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.Utils.ByteBuffer.ReadBytes!")); }
static StackObject *Setup_28(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); FairyGUI.Utils.ByteBuffer @buffer = (FairyGUI.Utils.ByteBuffer) typeof(FairyGUI.Utils.ByteBuffer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); FairyGUI.Transition instance_of_this_method = (FairyGUI.Transition) typeof(FairyGUI.Transition).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Setup(@buffer); return(__ret); }
static StackObject *Setup_AfterAdd_17(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Int32 @beginPos = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); FairyGUI.Utils.ByteBuffer @buffer = (FairyGUI.Utils.ByteBuffer) typeof(FairyGUI.Utils.ByteBuffer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); FairyGUI.GGroup instance_of_this_method = (FairyGUI.GGroup) typeof(FairyGUI.GGroup).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0); __intp.Free(ptr_of_this_method); instance_of_this_method.Setup_AfterAdd(@buffer, @beginPos); return(__ret); }
static StackObject *Setup_10(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @parentToChild = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); FairyGUI.Utils.ByteBuffer @buffer = (FairyGUI.Utils.ByteBuffer) typeof(FairyGUI.Utils.ByteBuffer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); FairyGUI.Relations instance_of_this_method = (FairyGUI.Relations) typeof(FairyGUI.Relations).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Setup(@buffer, @parentToChild); return(__ret); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { byte[] _data = LuaAPI.lua_tobytes(L, 2); int _offset = LuaAPI.xlua_tointeger(L, 3); int _length = LuaAPI.xlua_tointeger(L, 4); FairyGUI.Utils.ByteBuffer gen_ret = new FairyGUI.Utils.ByteBuffer(_data, _offset, _length); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { byte[] _data = LuaAPI.lua_tobytes(L, 2); int _offset = LuaAPI.xlua_tointeger(L, 3); FairyGUI.Utils.ByteBuffer gen_ret = new FairyGUI.Utils.ByteBuffer(_data, _offset); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { byte[] _data = LuaAPI.lua_tobytes(L, 2); FairyGUI.Utils.ByteBuffer gen_ret = new FairyGUI.Utils.ByteBuffer(_data); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.Utils.ByteBuffer constructor!")); }
static int _m_ReadColor(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.Utils.ByteBuffer gen_to_be_invoked = (FairyGUI.Utils.ByteBuffer)translator.FastGetCSObj(L, 1); { UnityEngine.Color gen_ret = gen_to_be_invoked.ReadColor( ); translator.PushUnityEngineColor(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ReadDouble(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.Utils.ByteBuffer gen_to_be_invoked = (FairyGUI.Utils.ByteBuffer)translator.FastGetCSObj(L, 1); { double gen_ret = gen_to_be_invoked.ReadDouble( ); LuaAPI.lua_pushnumber(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ReadString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.Utils.ByteBuffer gen_to_be_invoked = (FairyGUI.Utils.ByteBuffer)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { string gen_ret = gen_to_be_invoked.ReadString( ); LuaAPI.lua_pushstring(L, gen_ret); return(1); } if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _len = LuaAPI.xlua_tointeger(L, 2); string gen_ret = gen_to_be_invoked.ReadString( _len); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to FairyGUI.Utils.ByteBuffer.ReadString!")); }
static int _m_Setup(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.Controller gen_to_be_invoked = (FairyGUI.Controller)translator.FastGetCSObj(L, 1); { FairyGUI.Utils.ByteBuffer _buffer = (FairyGUI.Utils.ByteBuffer)translator.GetObject(L, 2, typeof(FairyGUI.Utils.ByteBuffer)); gen_to_be_invoked.Setup(_buffer); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_WriteS(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.Utils.ByteBuffer gen_to_be_invoked = (FairyGUI.Utils.ByteBuffer)translator.FastGetCSObj(L, 1); { string _value = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.WriteS(_value); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Load(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.PixelHitTestData gen_to_be_invoked = (FairyGUI.PixelHitTestData)translator.FastGetCSObj(L, 1); { FairyGUI.Utils.ByteBuffer _ba = (FairyGUI.Utils.ByteBuffer)translator.GetObject(L, 2, typeof(FairyGUI.Utils.ByteBuffer)); gen_to_be_invoked.Load(_ba); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Setup_AfterAdd(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.GTextField gen_to_be_invoked = (FairyGUI.GTextField)translator.FastGetCSObj(L, 1); { FairyGUI.Utils.ByteBuffer _buffer = (FairyGUI.Utils.ByteBuffer)translator.GetObject(L, 2, typeof(FairyGUI.Utils.ByteBuffer)); int _beginPos = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.Setup_AfterAdd(_buffer, _beginPos); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ReadSArray(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); FairyGUI.Utils.ByteBuffer gen_to_be_invoked = (FairyGUI.Utils.ByteBuffer)translator.FastGetCSObj(L, 1); { int _cnt = LuaAPI.xlua_tointeger(L, 2); string[] gen_ret = gen_to_be_invoked.ReadSArray(_cnt); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }