code: public static int writeInt(byte[] target, int offset, int value) {
          target[offset] = (byte) (value >>> 24);
          target[offset + 1] = (byte) (value >>> 16);
          target[offset + 2] = (byte) (value >>> 8);
          target[offset + 3] = (byte) value;
          return Integer.BYTES;
      }
docs: Writes the given 32-bit Integer to the given byte array at the given offset.
  
  @param target The byte array to write to.
  @param offset The offset within the byte array to write at.
  @param value  The value to write.
  @return The number of bytes written.