hello!
I have a following situation:
I have a byte array where at a certain location are stored 4 bytes, and
these should be "put" into long variable (or any other 4 byte one).
ie:
byte a[]={0x0,0x0,0xfe, 0x30,0x9e,0x2,0 x66,0,0}
and the bytes 0xfe,0x30,0x9e, 0x2 should be put into long variable which
should then contain 43921662
how to achieve this?
thanks!
I have a following situation:
I have a byte array where at a certain location are stored 4 bytes, and
these should be "put" into long variable (or any other 4 byte one).
ie:
byte a[]={0x0,0x0,0xfe, 0x30,0x9e,0x2,0 x66,0,0}
and the bytes 0xfe,0x30,0x9e, 0x2 should be put into long variable which
should then contain 43921662
how to achieve this?
thanks!
Comment