IRange.cs 783 B

12345678910111213141516171819202122232425262728293031
  1. namespace Ryujinx.Memory.Range
  2. {
  3. /// <summary>
  4. /// Range of memory.
  5. /// </summary>
  6. public interface IRange
  7. {
  8. /// <summary>
  9. /// Base address.
  10. /// </summary>
  11. ulong Address { get; }
  12. /// <summary>
  13. /// Size of the range.
  14. /// </summary>
  15. ulong Size { get; }
  16. /// <summary>
  17. /// End address.
  18. /// </summary>
  19. ulong EndAddress { get; }
  20. /// <summary>
  21. /// Check if this range overlaps with another.
  22. /// </summary>
  23. /// <param name="address">Base address</param>
  24. /// <param name="size">Size of the range</param>
  25. /// <returns>True if overlapping, false otherwise</returns>
  26. bool OverlapsWith(ulong address, ulong size);
  27. }
  28. }