using Ryujinx.HLE.HOS.Services.Am.AppletAE; using System; using System.Runtime.InteropServices; namespace Ryujinx.HLE.HOS.Applets { interface IApplet { event EventHandler AppletStateChanged; ResultCode Start(AppletSession normalSession, AppletSession interactiveSession); ResultCode GetResult(); static T ReadStruct(ReadOnlySpan data) where T : unmanaged { return MemoryMarshal.Cast(data)[0]; } } }