public TaintVec extended(int length, boolean isBigEndian, boolean isSigned) {
		if (length < this.length) {
			return truncated(length, isBigEndian);
		}
		TaintVec vec = new TaintVec(length);
		int diff = length - this.length;
		int shift = isBigEndian ? diff : 0;
		for (int i = 0; i < this.length; i++) {
			vec.sets[i + shift] = this.sets[i];
		}
		TaintSet ext = isSigned ? isBigEndian ? sets[0] : sets[this.length - 1] : TaintSet.EMPTY;
		int start = isBigEndian ? 0 : this.length;
		for (int i = 0; i < diff; i++) {
			vec.sets[start + i] = ext;
		}
		return vec;
	}
Extend this vector to create a new vector of the given length

<p>
Elements are appended at the most significant end, as specified by the endianness. If signed,
the appended elements are copies of the most significant element in this vector. Otherwise,
they are empty taint sets.

@param length the length of the new vector
@param isBigEndian true to append to the lower-indexed end, false to append to the
           higher-indexed end
@param isSigned true to append copies of the most significant element, false to append empty
           sets
@return the new vector
Ghidra/Debug/TaintAnalysis/src/main/java/ghidra/taint/model/TaintVec.java