MockMemoryManager.cs 1.4 KB

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