SaveState getUndoRedoState() {
		SaveState saveState = new SaveState();
		int changeCount = changeList.size();
		for (int i = 0; i < changeList.size(); i++) {
			ByteEditInfo edit = changeList.get(i);
			int blockNumber = blockSet.getByteBlockNumber(edit.getBlockAddress());
			if (blockNumber >= 0) {
				++changeCount;
				saveState.putInt(BLOCK_NUMBER + i, blockNumber);
				saveState.putString(BLOCK_OFFSET + i, edit.getOffset().toString());
				saveState.putBytes(OLD_VALUE + i, edit.getOldValue());
				saveState.putBytes(NEW_VALUE + i, edit.getNewValue());
			}
		}
		saveState.putInt(NUMBER_OF_CHANGES, changeCount);
		return saveState;
	}
Write the state of the change list.
Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ByteBlockChangeManager.java