MockMemoryManager.cs
1 using ARMeilleure.Memory; 2 using System; 3 4 namespace Ryujinx.Tests.Memory 5 { 6 internal class MockMemoryManager : IMemoryManager 7 { 8 public int AddressSpaceBits => throw new NotImplementedException(); 9 10 public IntPtr PageTablePointer => throw new NotImplementedException(); 11 12 public MemoryManagerType Type => MemoryManagerType.HostMappedUnsafe; 13 14 #pragma warning disable CS0067 // The event is never used 15 public event Action<ulong, ulong> UnmapEvent; 16 #pragma warning restore CS0067 17 18 public ref T GetRef<T>(ulong va) where T : unmanaged 19 { 20 throw new NotImplementedException(); 21 } 22 23 public ReadOnlySpan<byte> GetSpan(ulong va, int size, bool tracked = false) 24 { 25 throw new NotImplementedException(); 26 } 27 28 public bool IsMapped(ulong va) 29 { 30 throw new NotImplementedException(); 31 } 32 33 public T Read<T>(ulong va) where T : unmanaged 34 { 35 throw new NotImplementedException(); 36 } 37 38 public T ReadTracked<T>(ulong va) where T : unmanaged 39 { 40 throw new NotImplementedException(); 41 } 42 43 public void SignalMemoryTracking(ulong va, ulong size, bool write, bool precise = false, int? exemptId = null) 44 { 45 throw new NotImplementedException(); 46 } 47 48 public void Write<T>(ulong va, T value) where T : unmanaged 49 { 50 throw new NotImplementedException(); 51 } 52 } 53 }