protected int doReadBytes(long index, byte[] buffer) throws IOException {
		raf.seek(index);
		return raf.read(buffer, 0, buffer.length);
	}
Reads bytes from the file.
<p>
Protected by synchronized lock.  (See {@link #getBufferFor(long)}).

@param index file position of where to read
@param buffer byte array that will receive bytes
@return actual number of byte read
@throws IOException if error
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/FileByteProvider.java