To me a stream implies that I should be able to:
- Put things in one end and receive it from the other end in the same order.
- Do these things at the same time. i.e. continuously be adding to the top of the stream and reading from the bottom.
The problem is that streams only seems to maintain a single pointer which is shared by read and write operations.
Am I just interpreting the word 'stream' differently or am I interpreting it correctly and just missing something fundamental.
(I've been using the MemoryStream
type as a typical example of a general stream. Maybe there are other streams that support this?)