static int _m_ToInt32(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); int gen_ret = gen_to_be_invoked.ToInt32( _offset); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }