Skip to content

Commit

Permalink
Update UTF8.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire authored Jun 29, 2024
1 parent 9502c38 commit 8c5bde6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/UTF8.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1277,18 +1277,6 @@ private unsafe static (int utfadjust, int scalaradjust) calculateErrorPathadjust
}
return GetPointerToFirstInvalidByteScalar(pInputBuffer + processedLength, inputLength - processedLength, out utf16CodeUnitCountAdjustment, out scalarCountAdjustment);
}
public static void ToString(Vector128<byte> v)
{
Span<byte> b = stackalloc byte[16];
v.CopyTo(b);
Console.WriteLine(Convert.ToHexString(b));
}
public static void ToString(Vector128<sbyte> v)
{
Span<byte> b = stackalloc byte[16];
v.AsByte().CopyTo(b);
Console.WriteLine(Convert.ToHexString(b));
}
public unsafe static byte* GetPointerToFirstInvalidByteArm64(byte* pInputBuffer, int inputLength, out int utf16CodeUnitCountAdjustment, out int scalarCountAdjustment)
{
int processedLength = 0;
Expand Down

0 comments on commit 8c5bde6

Please sign in to comment.