示例#1
0
        static int _m_ToUInt16(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                System.IO.MemoryStream gen_to_be_invoked = (System.IO.MemoryStream)translator.FastGetCSObj(L, 1);



                {
                    System.IO.MemoryStream _memoryStream = (System.IO.MemoryStream)translator.GetObject(L, 1, typeof(System.IO.MemoryStream));
                    int _offset = LuaAPI.xlua_tointeger(L, 2);

                    ushort gen_ret = gen_to_be_invoked.ToUInt16(
                        _offset);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



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