You could do this with pointers, if the data has the correct byte order.
You can find a few examples in this topic: