If loss of precision is of no concern, and the number of bits of exponent and sign is the same between d and D formats, you may be able to use unpack d plus two skip bytes, and pack it as a double d followed by two appropriate fill bytes (00 or 88 ?).
Bill N1VUX