void modifyFlags(long functionID, int flagMask, boolean value) throws IOException {
		DBRecord record = table.getRecord(functionID);
		if (record == null) {
			throw new IOException("Function record does not exist");
		}
		byte flags = record.getByteValue(FLAGS_COL);
		if (value) {
			flags |= flagMask;
		}
		else {
			flags &= ~flagMask;
		}
		record.setByteValue(FLAGS_COL, flags);
		table.putRecord(record);
		functionCache.delete(functionID); // Remove any cached record
	}
Modify a flag on a function record.  Should be accompanied by clearCache().
@param functionID is the id of the function record to modify
@param flagMask is the bit to modify
@param value is true to set, false to clear
@throws IOException
Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/db/FunctionsTable.java