mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
15
Brutal.Strings/IString8.cs
Normal file
15
Brutal.Strings/IString8.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue