Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Two 8-bit array elements str[0]=0x25, str[ 1]=0xAB How to convert these two elements into a 16-bit hexadecimal number and put it into an array?
Two 8-bit array elements str[0]=0x25, str[ 1]=0xAB How to convert these two elements into a 16-bit hexadecimal number and put it into an array?
In the Java C/C++/C# language, as long as

b[0]=0x25,b[ 1]= 0x ab;

Unsigned short integer I = (b [0] <; & lt8)+b[ 1];

I is a new 16 bit integer.