mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 02:53:04 +00:00
31 lines
783 B
C#
31 lines
783 B
C#
|
namespace Ryujinx.Memory.Range
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Range of memory.
|
||
|
/// </summary>
|
||
|
public interface IRange
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Base address.
|
||
|
/// </summary>
|
||
|
ulong Address { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Size of the range.
|
||
|
/// </summary>
|
||
|
ulong Size { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// End address.
|
||
|
/// </summary>
|
||
|
ulong EndAddress { get; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Check if this range overlaps with another.
|
||
|
/// </summary>
|
||
|
/// <param name="address">Base address</param>
|
||
|
/// <param name="size">Size of the range</param>
|
||
|
/// <returns>True if overlapping, false otherwise</returns>
|
||
|
bool OverlapsWith(ulong address, ulong size);
|
||
|
}
|
||
|
}
|