void bufferChanged(int index, boolean empty) throws IOException {
		if (index >= indexCnt) {
			return; // no need to track new buffers
		}
		int byteOffset = index / 8;
		byte b;
		if (empty) {
			// Clear bit if buffer is removed
			int bitMask = ~(1 << (index % 8));
			b = (byte)(buffer.getByte(byteOffset) & bitMask);
		}
		else {
			// Set bit if buffer is set
			int bitMask = 1 << (index % 8);
			b = (byte)(buffer.getByte(byteOffset) | bitMask);
		}
		buffer.putByte(byteOffset, b);
	}
Mark buffer as changed
@param id
@throws IOException
Ghidra/Framework/DB/src/main/java/db/buffers/ChangeMapFile.java