short val = 0x1234;
sendData[0] = (byte)(val >> 8);
sendData[1] = (byte)val;
int val2 = 0x12345678;
sendData[0] = (byte)(val2 >> 24);
sendData[1] = (byte)(val2 >> 16);
sendData[2] = (byte)(val2 >> 8);
sendData[3] = (byte)val2;
댓글 없음:
댓글 쓰기