Add an API to reference an existing compressed data packet

This would allow to save one memory copy operation before the call to the decode function.

Edited by Jean-Baptiste Kempf