aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Memory/IMemory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ARMeilleure/Memory/IMemory.cs')
-rw-r--r--ARMeilleure/Memory/IMemory.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/ARMeilleure/Memory/IMemory.cs b/ARMeilleure/Memory/IMemory.cs
new file mode 100644
index 00000000..0c3849c0
--- /dev/null
+++ b/ARMeilleure/Memory/IMemory.cs
@@ -0,0 +1,37 @@
+namespace ARMeilleure.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);
+ }
+} \ No newline at end of file