Skip to content

JsonWriterHelper.Transcoding.cs replacement #75779

@kasperk81

Description

@kasperk81

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions