Byte array to Integer conversion
Ok, I can do this by multipling up each byte from left to right but...
I have an byte array and I want to extract a 4-byte Integer value from it, e.g.
Dim Data() = {0,0,1,9} = 265 as an Integer
What I want is simply to turn that array into a Dim I as Integer = the value of that array of data.
Surely there is a simply way to convert this... since the data is in the actual format used by an Integer anyway!
In pratice the Integer data will be within an array somewhere however - i.e. it wont just be a 4 byte array like the above example.
Can't for the life of me see how to do this though...
Anyone care to.... ;) :)