SpanJson
SpanJson copied to clipboard
ReadOnlySequence<byte> support
System.IO.Pipelines
return ReadOnlySequence<byte>
and I have to copy the contents into byte[] array, which is overhead.
Yes, you need to drain the pipeline fully at the moment.
Support for this is probably part of async support as that's basically necessary for Pipeline
support. Unfortunately async/await support is not easy.
I would be very interested in a pipeline support too (we migrated our stream code to pipes and I was looking for a json library with pipe support) It's something I'm ready to provide some help on btw, if you would be interested.