Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

infinite stream / fifo stream

8 views
Skip to first unread message

Avni...@gmail.com

unread,
Jan 17, 2008, 8:03:38 AM1/17/08
to
maybe it already exists in .net but after 6 hours of searching i
finally gave up.
i am looking for a stream object that will support the following
things:
1. write bytes to the end
2. read bytes from the beginning of the stream. when data is read the
data should be removed from the stream!
3. ability to peek of a few bytes without reading and/or getting the
internal buffer so i can peek on the first few bytes without removing
them from the stream

is there any object that allows me to do all that? the stream &
memorystream objects do not delete data from the beginning of the
stream after data has been read.

the streamreader, textreader, stringreader classes all use char data
and not byte data as i need to use

the binaryreader also does not delete data from the stream after it
has been read.

any ideas?
Dani Avni

0 new messages