Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IBufferWriter support back #62

Closed

Conversation

sebastienros
Copy link
Contributor

No description provided.

@sebastienros
Copy link
Contributor Author

@BrennanConroy


namespace System.Buffers;

internal static class BufferWriterHtmlExtensions
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How similar is this to the PipeWriter extensions? If it's basically the same then I'd want to figure out a way to avoid all the duplication, e.g. use T4.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recovered the code that was before the move to PipeWriter. Is seems 95% identical. And maybe some differences are just small refactoring that can also be applied in IBuffer.

There is also Utf8BufferTextWriter that will be almost a copy-paste.

@sebastienros
Copy link
Contributor Author

Fixed by TechEmpower/FrameworkBenchmarks#9464

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants