I would like to parse a binary block of data into the component parts. In C/C++, I could easily copy the block to memory, and address it using a struct, and then the fields would be populated based on their offset into the binary block.
I haven't found a way to do something like this in SalesForce, but I have considered using the EncodingUtil to convert it into Base64, then pulling off and manipulating the number of bytes I need, and casting to the type.
Does anyone have another solution, or any other thoughts on the subject?