Hi Rain,
Use BitConverter.ToXXX methods. These methods take the byte[] array and the
start index. For instance to convert the last two bytes of a byte array to
Int16 you can write the following code.
byte[] data;
short i16 = ByteConverter.ToInt16(data,data.Length-3);
Hope this helps.
--
Regards,
Aditya.P
Rain said:
simple question: i have a byte[] array.. how do i write to the console the
last 2 bytes of the byte[] array? thanks in advance