I have a byte array with the following structure:
The bytes are "Little Endian".
What i need to do, is:
transform byte1 and byte2 of each frame into a short in shortarray1.
transform byte3 and byte4 of each frame into a short in shortarray2.
How can i do this?
First frame: Byte1,Byte2,Byte3,Byte4
Next frame: Byte1,Byte2,Byte3,Byte4
...
Last frame: Byte1,Byte2,Byte3,Byte4
The bytes are "Little Endian".
What i need to do, is:
transform byte1 and byte2 of each frame into a short in shortarray1.
transform byte3 and byte4 of each frame into a short in shortarray2.
How can i do this?