brutal/brutal.strings/Brutal.Strings/IString.cs
2026-10-15 14:12:02 +13:00

13 lines
286 B
C#

namespace Brutal.Strings;
public interface IString<TChar>
where TChar : unmanaged
{
public ReadOnlySpan<TChar> Chars { get; }
public int Length { get; }
public bool IsEmpty { get; }
public TChar this[int index] { get; }
public ReadOnlySpan<TChar> AsSpan();
}