public static void Word2Byte(byte[] to, int toIndex, short from) { to[toIndex] = (byte) (from >> 8); to[toIndex + 1] = (byte) (from); }