Lines Matching full:gzip
23 jloup@gzip.org madler@alumni.caltech.edu
28 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
63 The library also supports reading and writing files in gzip (.gz) format
65 with "gz". The gzip format is different from the zlib format. gzip is a
66 gzip wrapper, documented in RFC 1952, wrapped around a deflate stream.
68 This library can optionally read and write gzip and raw deflate streams in
72 and on communications channels. The gzip format was designed for single-
111 gzip header information passed to and from zlib routines. See RFC 1952
117 int xflags; /* extra flags (not used when writing a gzip file) */
127 int done; /* true when done reading gzip header (not used
128 when writing a gzip file) */
342 so far (that is, total_in bytes). If a gzip stream is being generated, then
436 the zlib or gzip format, this will cause inflate() to return immediately
494 inflate() can decompress and check either zlib-wrapped or gzip-wrapped
496 initializing with inflateInit2(). Any information contained in the gzip
498 gzip-wrapped deflate data, strm->adler32 is set to the CRC-32 of the output
499 produced so far. The CRC-32 is checked against the gzip trailer, as is the
570 windowBits can also be greater than 15 for optional gzip encoding. Add
571 16 to windowBits to write a simple gzip header and trailer around the
572 compressed data instead of a zlib wrapper. The gzip header will have no
575 if the operating system was determined at compile time. If a gzip stream is
578 For raw deflate or gzip encoding, a request for a 256-byte window is
810 deflateSetHeader() provides gzip header information for when a gzip
814 in the provided gz_header structure are written to the gzip header (xflag is
818 available there. If hcrc is true, a gzip header crc is included. Note that
819 the current versions of the command-line version of gzip (up through version
821 gzip file" and give up.
823 If deflateSetHeader is not used, the default gzip header has text false,
825 fields. The gzip header is returned to the default state by deflateReset().
853 not looking for a zlib or gzip header, not generating a check value, and not
859 the uncompressed data as is done in the zlib, gzip, and zip formats. For
863 windowBits can also be greater than 15 for optional gzip decoding. Add
864 32 to windowBits to enable zlib and gzip decoding with automatic header
865 detection, or add 16 to decode only the gzip format (the zlib format will
866 return a Z_DATA_ERROR). If a gzip stream is being decoded, strm->adler is a
868 below), inflate() will not automatically decode concatenated gzip streams.
869 inflate() will return Z_STREAM_END at the end of the gzip stream. The state
870 would need to be reset to continue decoding a subsequent gzip stream.
1033 inflateGetHeader() requests that gzip header information be stored in the
1036 As inflate() processes the gzip stream, head->done is zero until the header
1039 no gzip header information forthcoming. Note that Z_BLOCK or Z_TREES can be
1043 The text, time, xflags, and os fields are filled in with the gzip header
1064 retrieve the header from the next gzip stream.
1114 A raw deflate stream is one with no zlib or gzip header or trailer.
1115 This routine would normally be used in a utility that reads zip or gzip
1197 17: NO_GZIP -- deflate can't write gzip streams, and inflate can't detect
1198 and decode gzip streams (to avoid linking crc code)
1291 /* gzip file access functions */
1294 This library supports reading and writing files in gzip (.gz) format with
1296 "gz". The gzip format is different from the zlib format. gzip is a gzip
1300 typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */
1305 Opens a gzip (.gz) file for reading or writing. The mode parameter is as
1312 the gzip format.
1314 "a" can be used instead of "w" to request that the gzip stream that will
1316 reading and writing to the same gzip file is not supported. The addition of
1321 These functions, as well as gzip, will read and decode a sequence of gzip
1324 appending, gzopen does not test whether the file begins with a gzip stream,
1325 nor does it look for the end of the gzip streams to begin appending. gzopen
1326 will simply append a gzip stream to the existing file.
1328 gzopen can be used to read a file which is not in gzip format; in this
1331 byte gzip header.
1393 the input file is not in gzip format, gzread copies the given number of
1396 After reaching the end of a gzip stream in the input, gzread will continue
1397 to read, looking for another gzip stream. Any number of gzip streams may be
1399 If something other than a gzip stream is encountered after a gzip stream,
1402 gzread can be used to read a gzip file that is being concurrently written.
1406 gzread to be tried again. Z_OK indicates that a gzip stream was completed
1408 middle of a gzip stream. Note that gzread does not return -1 in the event
1409 of an incomplete gzip stream. This error is deferred until gzclose(), which
1410 will return Z_BUF_ERROR if the last gzread ended in the middle of a gzip
1538 gzip stream is completed in the output. If gzwrite() is called again, a new
1539 gzip stream will be started in the output. gzread() is able to read such
1540 concatenated gzip streams.
1579 reading a gzip stream from the middle of a file using gzdopen().
1588 includes the count of bytes that precede the gzip stream, for example when
1612 (0) if file is a gzip stream being decompressed.
1615 does not contain a gzip stream.
1619 is a gzip file. Therefore if gzbuffer() is used, it should be called before
1627 gzip file reading and decompression, which may not be desired.)
1640 last read ended in the middle of a gzip stream, or Z_OK on success.
1674 clearerr() function in stdio. This is useful for continuing to read a gzip