@Override
	public synchronized void put(DataBuffer buf, int index) throws IOException {

		if (isReadOnly())
			throw new IOException("File is read-only");
		if (index > MAX_BUFFER_INDEX)
			throw new EOFException("Buffer index too large, exceeds max-int");

		versionBufferIfNeeded(index);

		boolean empty = buf.isEmpty();

		super.put(buf, index);

		if (changeMap != null) {
			changeMap.bufferChanged(index, empty);
		}
	}
@return version associated with this buffer file
Ghidra/Framework/DB/src/main/java/db/buffers/LocalManagedBufferFile.java