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