tag:blogger.com,1999:blog-4273255328290947077.post2152379122013794675..comments2023-05-17T10:04:02.732-06:00Comments on Being Cellfish: The NoMemoryStreamcellfishhttp://www.blogger.com/profile/12888771675677858223noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4273255328290947077.post-86173096231996106672014-11-16T22:19:51.004-07:002014-11-16T22:19:51.004-07:00ProducerConsumerStream is not a bad name!
But I do...ProducerConsumerStream is not a bad name!<br />But I do notice that the linked implementation does not work the same way my implementation does since it allows for data to be cached inside the stream. I.e. writes can complete without having a reader waiting for data. My implementation will block both reads and writes until there is a matching call.cellfishhttps://www.blogger.com/profile/12888771675677858223noreply@blogger.comtag:blogger.com,1999:blog-4273255328290947077.post-38874157211212416192014-11-16T15:04:59.078-07:002014-11-16T15:04:59.078-07:00Sounds less of a stream but more like a producer c...Sounds less of a stream but more like a producer consumer scenario. How about ProducerConsumerStream? There even exists an implementation for it: https://github.com/FrozenCow/sharpfilesystem/blob/master/SharpFileSystem/IO/ProducerConsumerStream.cs <br />Alois Kraushttps://www.blogger.com/profile/05066929000823203046noreply@blogger.comtag:blogger.com,1999:blog-4273255328290947077.post-38108603198666194502014-11-13T14:16:24.666-07:002014-11-13T14:16:24.666-07:00But the stream also supports "ReadThenWriteSi...But the stream also supports "ReadThenWriteSingleBufferStream"...cellfishhttps://www.blogger.com/profile/12888771675677858223noreply@blogger.comtag:blogger.com,1999:blog-4273255328290947077.post-17158926976345009402014-11-13T14:10:46.785-07:002014-11-13T14:10:46.785-07:00My first bet would be: ReadWriteCycleStream or Wri...My first bet would be: ReadWriteCycleStream or WriteThenReadSingleBufferStream which would be quite explicit. Alois Kraushttps://www.blogger.com/profile/05066929000823203046noreply@blogger.com