CPF/CPF.Mac/Mac/Foundation/NSRange.cs
2023-11-21 23:05:03 +08:00

29 lines
443 B
C#

namespace CPF.Mac.Foundation
{
public struct NSRange
{
public ulong Location;
public ulong Length;
public const ulong NotFound = ulong.MaxValue;
public NSRange(ulong start, ulong len)
{
Location = start;
Length = len;
}
public NSRange(int start, int len)
{
Location = (ulong)start;
Length = (ulong)len;
}
public override string ToString()
{
return $"[Location={Location},Length={Length}]";
}
}
}