protected static ByteBuffer copyDoubledCapacity(ByteBuffer oldBuf) {
		ByteBuffer newBuf = ByteBuffer.allocate(oldBuf.capacity() * 2);
		oldBuf.flip();
		newBuf.put(oldBuf);
		return newBuf;
	}
Construct a parser with the given handler

@param handler the handler
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/vt/VtParser.java