Lines Matching refs:GZIP
4 /* gzread.c -- zlib functions for reading gzip files
88 /* Look for gzip header, set up for inflate or copy. state.state->x.have must be 0.
91 if there is no gzip header and direct copying will be performed, or it will
92 be set to GZIP for decompression. If direct copying, then leftover input
136 /* look for gzip magic bytes -- if there, do gzip decoding (note: there is
138 gzip file, to wit, if a single 31 byte is written, then we cannot tell
139 whether this is a single-byte file, or just a partially written gzip
140 file -- for here we assume that if a gzip file is being written, then
142 single byte is sufficient indication that it is not a gzip file) */
147 state.state->how = GZIP;
152 /* no gzip header -- if we were decoding gzip before, then this is trailing
177 data. If the gzip stream completes, state.state->how is reset to LOOK to look for
178 the next gzip stream or raw data, once state.state->x.have is depleted. Returns 0
218 /* if the gzip stream completed successfully, look for another */
228 file depending on state.state->how. If state.state->how is LOOK, then a gzip header is
230 otherwise 0. gz_fetch() will leave state.state->how as COPY or GZIP unless the
237 case LOOK: /* -> LOOK, COPY (only if never GZIP), or GZIP */
249 case GZIP: /* -> GZIP or LOOK (if end of gzip stream) */
348 else { /* state.state->how == GZIP */
607 /* return 1 if transparent, 0 if processing a gzip stream */