Is there a class in the .NET BCL that can store a block of binary data and that allows you to easily add and remove bytes to/from it?
+2
A:
MemoryStream class is exactly for that purpose. However, removing an arbitrary bloc of bytes can be trickier
Kerido
2010-03-03 09:06:11
Er... yes :-) Why didn't I think of that! It is not *exactly* what I need, but I could write a thin wrapper around it, so I can add functionality. Thanks!
Dimitri C.
2010-03-03 09:21:07