Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Bzip2 support

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 26 Jun 2019 14:16:24 -0700
On Jun 26, 2019, at 2:03 PM, Jaap Keuter <jaap.keuter@xxxxxxxxx> wrote:

> On 26 Jun 2019, at 19:41, Guy Harris <guy@xxxxxxxxxxxx> wrote:
> 
>> It could probably be done (note that for decompressing capture files that would require the ability to do random access I/O,
> 
> It (http://sourceware.org/bzip2/manual/manual.html#limits) now says: "Further ahead, it would be nice to be able to do random access into files. This will require some careful design of compressed file formats."

gzip format wasn't carefully designed for that, either, but it can be - and has been - made to work.  It requires storing dictionary state.