low level data conversion


I'm working on the display of some numeric stream data that may vary in size/representation. So we could run into 100 points of data being represented by 2 byte little endian short integers (16bit ints) or unsigned ints (32 bit integers). The C side was pretty simple, I was starting to think that doing this in C# would require some serious tooling around (to work around the lack of direct pointer access [its possible but unsafe]). Low and behold I run into the BitConverter class, which will do everything I want. It's nice to be able to come up with ideas and have the tools to rapidly compose them into reality.