I have a byte[] like this
byte[] buffer = new byte[1024];
this byte[] may have values like this:
buffer = {0, 0, 0, 106, 0, 0, 0, 11, 64, 33, 50, 32, 32, 32, ....}
I am trying to get first 8 bytes, that is:
0,0,0,106
0,0,0,11
, and convert these into integers which is 106 and 11.
I can safely assume that first 8 bytes always represent 2 integers like in example above, these are 106 and 11 and that they take form of 4 bytes with 1st 3 being 0's like above.
Both are 4 byte signed integers in Hi-Lo order
How do I do that in C#?