This discussion is archived
1 Reply Latest reply: May 10, 2007 10:56 PM by 807606 RSS

Converting a byte[] of two bytes to a short

807606 Newbie
Currently Being Moderated
How can I convert two bytes (from a byte array, if that's easier than using [0] and [1]) to a, preferrably unsigned but I'm not too fussed, short integer?

I have found several sites on Google that tell me how to convert them to an integer, or to convert one byte to a short, but not two bytes.

Thank-you in advance for any help.