by MichaelGG · 11y ago · 0 comments
LZ4 allows you to "prime the stream" as it were, but I'm not sure it is really made for this scenario. As far as I can tell, I'd have to essentially have separate compression/decompression calls for each packet, resetting the state to the dictionary between each packet.
There is a function, called LZ4_decompress_safe_usingDict() which seems to match your objectives.
In case of doubt, you should ask directly the author, at : https://groups.google.com/forum/#!forum/lz4c