[fpc-pascal] TStream descendant to compress/decompress gzip data from another stream

Ewald ewald at yellowcouch.org
Thu Mar 28 17:57:54 CET 2013


Once upon a time, José Mejuto said:
> El 28/03/2013 1:06, Ewald escribió:
>> Sorry to just drop in on this quite late, but isn't gzip  a
>> compression algorithm and not a file format as such? gzip (the
>> command line utility) only compresses one file and *doesn't* put this
>> in a multi-file container. To get `multi-file gzips`, you will first
>> want to bundle the files and compress this bundle (files -> tar ->
>> gzip) or compress the files separately and then bundle them together
>> (files -> multiple separate gzipped files -> tar). Or are we talking
>> about a different gzip here?
>>
>
> Hello,
>
> Just quoting the RFC1952 about .gz format:
>
> --- http://tools.ietf.org/html/rfc1952 --------
>
> 2.2. File format
>
>       A gzip file consists of a series of "members" (compressed data
>       sets).  The format of each member is specified in the following
>       section.  The members simply appear one after another in the file,
>       with no additional information before, between, or after them.
>
> -----------------------------------------------
>
> So I think it is legal to concatenate several .gz files and get a
> final .gz with several files inside.
>
> In the other hand, yes, the usual behavior in .gz is to store only one
> file.
>

Yeah, you're right indeed. Sorry for the noise.


-- 
Ewald




More information about the fpc-pascal mailing list