SpanJson icon indicating copy to clipboard operation
SpanJson copied to clipboard

ReadOnlySequence<byte> support

Open vitidev opened this issue 5 years ago • 2 comments

System.IO.Pipelines return ReadOnlySequence<byte> and I have to copy the contents into byte[] array, which is overhead.

vitidev avatar Nov 10 '19 21:11 vitidev

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.

Tornhoof avatar Nov 11 '19 08:11 Tornhoof

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.

jmderuty avatar Dec 05 '20 14:12 jmderuty