I have a control that has a byte array in it.
Every now and then there are two bytes that tell me some info about number of future items in the array.
So as an example I could have:
... ... Item  = 7 Item  = 0 ... ...
The value of this is clearly 7.
But what about this?
... ... Item  = 0 Item  = 7 ... ...
Any idea on what that equates to (as an normal int)?
I went to binary and thought it may be 11100000000 which equals 1792. But I don't know if that is how it really works (ie does it use the whole 8 items for the byte).
Is there any way to know this with out testing?
Note: I am using C# 3.0 and visual studio 2008
© Stack Overflow or respective owner