tags:

views:

26

answers:

2

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
+3  A: 

List<byte> doesn't serve your purpose?

pdr
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.