aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Memory/IMemory.cs
blob: dc582155f8b61f9972d4a86856f6e9587aa131bb (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
namespace ChocolArm64.Memory
{
    public interface IMemory
    {
        sbyte ReadSByte(long position);

        short ReadInt16(long position);

        int ReadInt32(long position);

        long ReadInt64(long position);

        byte ReadByte(long position);

        ushort ReadUInt16(long position);

        uint ReadUInt32(long position);

        ulong ReadUInt64(long position);

        void WriteSByte(long position, sbyte value);

        void WriteInt16(long position, short value);

        void WriteInt32(long position, int value);

        void WriteInt64(long position, long value);

        void WriteByte(long position, byte value);

        void WriteUInt16(long position, ushort value);

        void WriteUInt32(long position, uint value);

        void WriteUInt64(long position, ulong value);
    }
}