brutal/Brutal.Strings/IString8.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

15 lines
325 B
C#

namespace Brutal.Strings;
public interface IString8 : IString<Char8>
{
public String16 ToString16();
}
public static class IString8Extensions
{
public static void CopyTo<T>(this T source, Span<Char8> destination)
where T : IString8, allows ref struct
{
source.Chars.CopyTo(destination);
}
}