aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Tests/Memory/MockMemoryManager.cs
blob: 20c318de6106454dff4990a562fbd800621afc23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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 // The event is never used
        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();
        }
    }
}