Example #1
0
        static int _m_OnUdpRecv(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                Maria.Context __cl_gen_to_be_invoked = (Maria.Context)translator.FastGetCSObj(L, 1);



                {
                    byte[] data  = LuaAPI.lua_tobytes(L, 2);
                    int    start = LuaAPI.xlua_tointeger(L, 3);
                    int    len   = LuaAPI.xlua_tointeger(L, 4);

                    __cl_gen_to_be_invoked.OnUdpRecv(data, start, len);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Example #2
0
        static int _m_OnUdpRecv(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            Maria.Context __cl_gen_to_be_invoked = (Maria.Context)translator.FastGetCSObj(L, 1);


            try {
                {
                    Maria.Network.PackageSocketUdp.R r = (Maria.Network.PackageSocketUdp.R)translator.GetObject(L, 2, typeof(Maria.Network.PackageSocketUdp.R));

                    __cl_gen_to_be_invoked.OnUdpRecv(r);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }