public int[] readIntArray(long index, int nElements) throws IOException {
		if (nElements < 0) {
			throw new IOException("Invalid number of elements specified: " + nElements);
		}
		int[] arr = new int[nElements];
		for (int i = 0; i < nElements; ++i) {
			arr[i] = readInt(index);
			index += SIZEOF_INT;
		}
		return arr;
	}
Returns the INTEGER array of <code>nElements</code>
starting at <code>index</code>.
@param index the index where the INTEGER begins
@param nElements the number of array elements
@return the INTEGER array
@exception IOException if an I/O error occurs
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/BinaryReader.java