private static void storeParm(int parm, int value, DataBuffer buffer) {
		int maxParmCnt = (buffer.length() - PARM_BASE_OFFSET) / 4;
		if (parm < 0 || parm >= maxParmCnt) {
			throw new IndexOutOfBoundsException("Invalid parameter index: " + parm);
		}
		int size = (buffer.getInt(DATA_LENGTH_OFFSET) - VERSION_SIZE) / 4;
		if (parm >= size) {
			// expand parameter space
			int dataLen = (parm + 1) * 4;
			buffer.putInt(DATA_LENGTH_OFFSET, dataLen + VERSION_SIZE);
		}
		buffer.putInt(getOffset(parm), value);
	}
Poke a modified DBParam into a database buffer file.
WARNING! Use with extreme caution since this immediately modifies
the original file in-place and could destroy data if used
improperly.
@param file
@param parm
@param value
@throws IOException
Ghidra/Framework/DB/src/main/java/db/DBParms.java