public void pad() {
		if (currentPos == BUFFER_SIZE) {
			byteCount += currentPos;
			currentBuffer.next = new ArrayIter();
			currentBuffer = currentBuffer.next;
			currentBuffer.array = new byte[1];
			currentPos = 0;
		}

		currentBuffer.array[currentPos++] = (byte) padValue;
	}
Add the padValue to the end of the buffer
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/pcode/LinkedByteBuffer.java