Home | History | Annotate | Download | only in src

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
811 deflateSetHeader() provides gzip header information for when a gzip
815 in the provided gz_header structure are written to the gzip header (xflag is
819 available there. If hcrc is true, a gzip header crc is included. Note that
820 the current versions of the command-line version of gzip (up through version
822 gzip file" and give up.
824 If deflateSetHeader is not used, the default gzip header has text false,
826 fields. The gzip header is returned to the default state by deflateReset().
854 not looking for a zlib or gzip header, not generating a check value, and not
860 the uncompressed data as is done in the zlib, gzip, and zip formats. For
864 windowBits can also be greater than 15 for optional gzip decoding. Add
865 32 to windowBits to enable zlib and gzip decoding with automatic header
866 detection, or add 16 to decode only the gzip format (the zlib format will
867 return a Z_DATA_ERROR). If a gzip stream is being decoded, strm->adler is a
869 below), inflate() will not automatically decode concatenated gzip streams.
870 inflate() will return Z_STREAM_END at the end of the gzip stream. The state
871 would need to be reset to continue decoding a subsequent gzip stream.
1034 inflateGetHeader() requests that gzip header information be stored in the
1037 As inflate() processes the gzip stream, head->done is zero until the header
1040 no gzip header information forthcoming. Note that Z_BLOCK or Z_TREES can be
1044 The text, time, xflags, and os fields are filled in with the gzip header
1065 retrieve the header from the next gzip stream.
1115 A raw deflate stream is one with no zlib or gzip header or trailer.
1116 This routine would normally be used in a utility that reads zip or gzip
1198 17: NO_GZIP -- deflate can't write gzip streams, and inflate can't detect
1199 and decode gzip streams (to avoid linking crc code)
1292 /* gzip file access functions */
1295 This library supports reading and writing files in gzip (.gz) format with
1297 "gz". The gzip format is different from the zlib format. gzip is a gzip
1301 typedef struct gzFile_s *gzFile; /* semi-opaque gzip file descriptor */
1306 Opens a gzip (.gz) file for reading or writing. The mode parameter is as
1313 the gzip format.
1315 "a" can be used instead of "w" to request that the gzip stream that will
1317 reading and writing to the same gzip file is not supported. The addition of
1322 These functions, as well as gzip, will read and decode a sequence of gzip
1325 appending, gzopen does not test whether the file begins with a gzip stream,
1326 nor does it look for the end of the gzip streams to begin appending. gzopen
1327 will simply append a gzip stream to the existing file.
1329 gzopen can be used to read a file which is not in gzip format; in this
1332 byte gzip header.
1394 the input file is not in gzip format, gzread copies the given number of
1397 After reaching the end of a gzip stream in the input, gzread will continue
1398 to read, looking for another gzip stream. Any number of gzip streams may be
1400 If something other than a gzip stream is encountered after a gzip stream,
1403 gzread can be used to read a gzip file that is being concurrently written.
1407 gzread to be tried again. Z_OK indicates that a gzip stream was completed
1409 middle of a gzip stream. Note that gzread does not return -1 in the event
1410 of an incomplete gzip stream. This error is deferred until gzclose(), which
1411 will return Z_BUF_ERROR if the last gzread ended in the middle of a gzip
1539 gzip stream is completed in the output. If gzwrite() is called again, a new
1540 gzip stream will be started in the output. gzread() is able to read such
1541 concatenated gzip streams.
1580 reading a gzip stream from the middle of a file using gzdopen().
1589 includes the count of bytes that precede the gzip stream, for example when
1613 (0) if file is a gzip stream being decompressed.
1616 does not contain a gzip stream.
1620 is a gzip file. Therefore if gzbuffer() is used, it should be called before
1628 gzip file reading and decompression, which may not be desired.)
1641 last read ended in the middle of a gzip stream, or Z_OK on success.
1675 clearerr() function in stdio. This is useful for continuing to read a gzip