On Saturday, 17 March 2018 at 17:51:50 UTC, John Chapman wrote:

I'm trying to replace the old std.streams in my app with ranges. I'm interfacing with a networking library to which I supply a callback that when invoked provides the requested data. I write that data to an output range, but later on I need to read that data from the range too - which of course you can't do.

So what I'm looking for is the range-based equivalent of a MemoryStream.

I suggest you to give a fast read to this [1], reactive streams.
The D implementation [2] uses as a base an output range.

They are pretty good in handling time based series event, it this is your usecase...

[1] http://reactivex.io
[2] https://github.com/lempiji/rx

/Paolo

Reply via email to