mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-04-01 11:41:08 +00:00
32 lines
802 B
C#
32 lines
802 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="endAddress">EndAddress of the range</param>
|
|
/// <returns>True if overlapping, false otherwise</returns>
|
|
bool OverlapsWith(ulong address, ulong endAddress);
|
|
}
|
|
}
|