MemoryInfo.cs
1 using Ryujinx.HLE.HOS.Kernel.Memory; 2 3 namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall 4 { 5 struct MemoryInfo 6 { 7 public ulong Address; 8 public ulong Size; 9 public MemoryState State; 10 public MemoryAttribute Attribute; 11 public KMemoryPermission Permission; 12 public int IpcRefCount; 13 public int DeviceRefCount; 14 #pragma warning disable CS0414, IDE0052 // Remove unread private member 15 private readonly int _padding; 16 #pragma warning restore CS0414, IDE0052 17 18 public MemoryInfo( 19 ulong address, 20 ulong size, 21 MemoryState state, 22 MemoryAttribute attribute, 23 KMemoryPermission permission, 24 int ipcRefCount, 25 int deviceRefCount) 26 { 27 Address = address; 28 Size = size; 29 State = state; 30 Attribute = attribute; 31 Permission = permission; 32 IpcRefCount = ipcRefCount; 33 DeviceRefCount = deviceRefCount; 34 _padding = 0; 35 } 36 } 37 }