Lines Matching full:gzip
1 /* gzread.c -- zlib functions for reading gzip files
76 /* Look for gzip header, set up for inflate or copy. state->x.have must be 0.
79 if there is no gzip header and direct copying will be performed, or it will
80 be set to GZIP for decompression. If direct copying, then leftover input
128 /* look for gzip magic bytes -- if there, do gzip decoding (note: there is
130 gzip file, to wit, if a single 31 byte is written, then we cannot tell
131 whether this is a single-byte file, or just a partially written gzip
132 file -- for here we assume that if a gzip file is being written, then
134 single byte is sufficient indication that it is not a gzip file) */
138 state->how = GZIP;
143 /* no gzip header -- if we were decoding gzip before, then this is trailing
168 data. If the gzip stream completes, state->how is reset to LOOK to look for
169 the next gzip stream or raw data, once state->x.have is depleted. Returns 0
211 /* if the gzip stream completed successfully, look for another */
221 file depending on state->how. If state->how is LOOK, then a gzip header is
223 otherwise 0. gz_fetch() will leave state->how as COPY or GZIP unless the
232 case LOOK: /* -> LOOK, COPY (only if never GZIP), or GZIP */
244 case GZIP: /* -> GZIP or LOOK (if end of gzip stream) */
360 else { /* state->how == GZIP */
557 /* return 1 if transparent, 0 if processing a gzip stream */