old discussion: dotnet/corefx#34425 (comment)
|
public static unsafe OperationStatus ToUtf8(ReadOnlySpan<byte> utf16Source, Span<byte> utf8Destination, out int bytesConsumed, out int bytesWritten) |
the corelib implementation this ToUtf8 method was shadowing back in 2018-2019 is accelerated with hardware intrinsics since and code was heavily refactored, but JsonWriterHelper.Transcoding is stuck in time. should it be replaced by corelib version?
old discussion: dotnet/corefx#34425 (comment)
runtime/src/libraries/System.Text.Json/src/System/Text/Json/Writer/JsonWriterHelper.Transcoding.cs
Line 28 in eeef4b1
the corelib implementation this
ToUtf8method was shadowing back in 2018-2019 is accelerated with hardware intrinsics since and code was heavily refactored, butJsonWriterHelper.Transcodingis stuck in time. should it be replaced by corelib version?