From cee712105850ac3385cd0091a923438167433f9f Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Sat, 8 Apr 2023 01:22:00 +0200 Subject: Move solution and projects to src --- src/Ryujinx.Memory/MemoryPermission.cs | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/Ryujinx.Memory/MemoryPermission.cs (limited to 'src/Ryujinx.Memory/MemoryPermission.cs') diff --git a/src/Ryujinx.Memory/MemoryPermission.cs b/src/Ryujinx.Memory/MemoryPermission.cs new file mode 100644 index 00000000..8c3e33cf --- /dev/null +++ b/src/Ryujinx.Memory/MemoryPermission.cs @@ -0,0 +1,51 @@ +using System; + +namespace Ryujinx.Memory +{ + /// + /// Memory access permission control. + /// + [Flags] + public enum MemoryPermission + { + /// + /// No access is allowed on the memory region. + /// + None = 0, + + /// + /// Allow reads on the memory region. + /// + Read = 1 << 0, + + /// + /// Allow writes on the memory region. + /// + Write = 1 << 1, + + /// + /// Allow code execution on the memory region. + /// + Execute = 1 << 2, + + /// + /// Allow reads and writes on the memory region. + /// + ReadAndWrite = Read | Write, + + /// + /// Allow reads and code execution on the memory region. + /// + ReadAndExecute = Read | Execute, + + /// + /// Allow reads, writes, and code execution on the memory region. + /// + ReadWriteExecute = Read | Write | Execute, + + /// + /// Indicates an invalid protection. + /// + Invalid = 255 + } +} -- cgit v1.2.3