mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
14
brutal.strings/Brutal.Strings/SpanExtensions.cs
Normal file
14
brutal.strings/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