MemoryInfo.cs 1000 B

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