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
14
Brutal.Strings/SpanExtensions.cs
Normal file
14
Brutal.Strings/SpanExtensions.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
namespace Brutal.Strings.Extensions;
|
||||
|
||||
public static class SpanExtensions
|
||||
{
|
||||
public static String16 ToString16(this Span<Char8> span)
|
||||
{
|
||||
return Utf8.GetString(span);
|
||||
}
|
||||
|
||||
public static String16 ToString16(this String8View span)
|
||||
{
|
||||
return Utf8.GetString(span);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue