aspnetcore/src/Mvc/Mvc.Formatters.Xml
David Fowler 5c6f97b9ef
Made changes to FileBufferWriteStream (#21223)
* Made changes to FileBufferWriteStream
- Make the internal FileStream write only
- Make a new readable stream over the same file in DrainBufferAsync to copy data to the buffer.
- Added an overload to DrainBufferAsync into a PipeWriter and use this overload in the 2 formatters in MVC. This should reduce the amount of copying from the internal buffer and reduces pinning (since these buffers are already pinned)
- Improved formatter tests
2020-04-28 23:22:39 -07:00
..
ref
src Made changes to FileBufferWriteStream (#21223) 2020-04-28 23:22:39 -07:00
test Made changes to FileBufferWriteStream (#21223) 2020-04-28 23:22:39 -07:00