code: public static void int2(byte[] target, int idx, int value) {
      target[idx + 0] = (byte) (value >>> 8);
      target[idx + 1] = (byte) value;
    }
docs: Encodes a int value to the byte array.
  
  @param target The byte array to encode to.
  @param idx The starting index in the byte array.
  @param value The value to encode.