Working with binary data
Posted on 2006-04-27
I'm doing some hard core C#\.NET socket program and have a pressing question about dealing with binary data. I've done similar work in Java, and have found the ByteBuffer class in Java's NIO package invaluable. I was wondering if there is a similar class (either part of the .NET SDK or 3rd party) for managing binary data in C#. The specific operations I would need support for are append, find, cut, and copy, and would want the class to keep track of its current position etc...
If it turns out all I can work with are native .NET arrays, are there any methods for bulk cutting\copying and appending on them?