FIFO/Queue buffer specialising in byte streams
问题 Is there any .NET data structure/combination of classes that allows for byte data to be appended to the end of a buffer but all peeks and reads are from the start, shortening the buffer when I read? The MemoryStream class seems to do part of this, but I need to maintain separate locations for reading and writing, and it doesn't automatically discard the data at the start after it's read. An answer has been posted in reply to this question which is basically what I'm trying to do but I'd