TheObserver
Programmer
I have a byte array I'm reading in from a file. I need to be able to take n bytes from that array and convert them into an integer/long/double, such that the resultant value is equal to the four bytes.
For example, if I have these values in my byte array:
10100111
00001010
11100110
10001010
I would like to read them like this:
10100111000010101110011010001010
And produce the value:
2802509450
Thanks for your time.
For example, if I have these values in my byte array:
10100111
00001010
11100110
10001010
I would like to read them like this:
10100111000010101110011010001010
And produce the value:
2802509450
Thanks for your time.