PointerAndSize.cs 396 B

1234567891011121314151617
  1. namespace Ryujinx.Horizon.Sdk.Sf.Cmif
  2. {
  3. struct PointerAndSize
  4. {
  5. public static PointerAndSize Empty => new(0UL, 0UL);
  6. public ulong Address { get; }
  7. public ulong Size { get; }
  8. public bool IsEmpty => Size == 0UL;
  9. public PointerAndSize(ulong address, ulong size)
  10. {
  11. Address = address;
  12. Size = size;
  13. }
  14. }
  15. }