mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
15 lines
325 B
C#
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);
|
|
}
|
|
}
|