diff options
author | TSR Berry <20988865+TSRBerry@users.noreply.github.com> | 2023-04-08 01:22:00 +0200 |
---|---|---|
committer | Mary <thog@protonmail.com> | 2023-04-27 23:51:14 +0200 |
commit | cee712105850ac3385cd0091a923438167433f9f (patch) | |
tree | 4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /src/Ryujinx.Tests/Memory/MockMemoryManager.cs | |
parent | cd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff) |
Move solution and projects to src
Diffstat (limited to 'src/Ryujinx.Tests/Memory/MockMemoryManager.cs')
-rw-r--r-- | src/Ryujinx.Tests/Memory/MockMemoryManager.cs | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/Ryujinx.Tests/Memory/MockMemoryManager.cs b/src/Ryujinx.Tests/Memory/MockMemoryManager.cs new file mode 100644 index 00000000..eeecf419 --- /dev/null +++ b/src/Ryujinx.Tests/Memory/MockMemoryManager.cs @@ -0,0 +1,53 @@ +using ARMeilleure.Memory; +using System; + +namespace Ryujinx.Tests.Memory +{ + internal class MockMemoryManager : IMemoryManager + { + public int AddressSpaceBits => throw new NotImplementedException(); + + public IntPtr PageTablePointer => throw new NotImplementedException(); + + public MemoryManagerType Type => MemoryManagerType.HostMappedUnsafe; + +#pragma warning disable CS0067 + public event Action<ulong, ulong> UnmapEvent; +#pragma warning restore CS0067 + + public ref T GetRef<T>(ulong va) where T : unmanaged + { + throw new NotImplementedException(); + } + + public ReadOnlySpan<byte> GetSpan(ulong va, int size, bool tracked = false) + { + throw new NotImplementedException(); + } + + public bool IsMapped(ulong va) + { + throw new NotImplementedException(); + } + + public T Read<T>(ulong va) where T : unmanaged + { + throw new NotImplementedException(); + } + + public T ReadTracked<T>(ulong va) where T : unmanaged + { + throw new NotImplementedException(); + } + + public void SignalMemoryTracking(ulong va, ulong size, bool write, bool precise = false, int? exemptId = null) + { + throw new NotImplementedException(); + } + + public void Write<T>(ulong va, T value) where T : unmanaged + { + throw new NotImplementedException(); + } + } +} |