public DittedBitSequence concatenate(DittedBitSequence toConat) {
		DittedBitSequence res = new DittedBitSequence();
		res.bits = new byte[bits.length + toConat.bits.length];
		res.dits = new byte[res.bits.length];
		for (int i = 0; i < bits.length; ++i) {
			res.bits[i] = bits[i];
			res.dits[i] = dits[i];
		}
		for (int i = 0; i < toConat.bits.length; ++i) {
			res.bits[bits.length + i] = toConat.bits[i];
			res.dits[bits.length + i] = toConat.dits[i];
		}

		return res;
	}
Concatenates a sequence to the end of another sequence and
returns a new sequence.

@param toConat sequence to concatenate to this sequence

@return a new sequence that is the concat of this and toConcat
Ghidra/Features/Base/src/main/java/ghidra/util/bytesearch/DittedBitSequence.java