Skip to content

Add an API to perform streaming transcoding #30260

Closed
@pranavkm

Description

@pranavkm

(Edit by @GrabYourPitchforks: proposed API is in a comment at https://github.com/dotnet/corefx/issues/39483#issuecomment-557737022.)

System.Text.Json specifically supports UTF8 inputs and outputs. MVC needs to support arbitrary user configured encoding schemes. To support this in a performant way, MVC has transcoding Stream implementations that minimally buffer inputs and outputs to the serializer.

Most of the work in these implementations is to perform state management when calling Utf8.FromUtf16 \ Encoders * Decoders. It would be great if these APIs were instead available as part of CoreFx.

Metadata

Metadata

Labels

api-approvedAPI was approved in API review, it can be implementedarea-System.Text.EncodingblockingMarks issues that we want to fast track in order to unblock other important work

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions