public static void Word2Byte(byte[] to, int toIndex, short from) {
to[toIndex] = (byte) (from >> 8);
to[toIndex + 1] = (byte) (from);
}
微信扫一扫
public static void Word2Byte(byte[] to, int toIndex, short from) {
to[toIndex] = (byte) (from >> 8);
to[toIndex + 1] = (byte) (from);
}
相关推荐