Home | History | Annotate | Download | only in zlib

Lines Matching refs:GZIP

1 /* gzread.c -- zlib functions for reading gzip files
67 /* Look for gzip header, set up for inflate or copy. state->x.have must be 0.
70 if there is no gzip header and direct copying will be performed, or it will
71 be set to GZIP for decompression. If direct copying, then leftover input
115 /* look for gzip magic bytes -- if there, do gzip decoding (note: there is
117 gzip file, to wit, if a single 31 byte is written, then we cannot tell
118 whether this is a single-byte file, or just a partially written gzip
119 file -- for here we assume that if a gzip file is being written, then
121 single byte is sufficient indication that it is not a gzip file) */
125 state->how = GZIP;
130 /* no gzip header -- if we were decoding gzip before, then this is trailing
153 data. If the gzip stream completes, state->how is reset to LOOK to look for
154 the next gzip stream or raw data, once state->x.have is depleted. Returns 0
194 /* if the gzip stream completed successfully, look for another */
204 file depending on state->how. If state->how is LOOK, then a gzip header is
206 otherwise 0. gz_fetch() will leave state->how as COPY or GZIP unless the
213 case LOOK: /* -> LOOK, COPY (only if never GZIP), or GZIP */
225 case GZIP: /* -> GZIP or LOOK (if end of gzip stream) */
324 else { /* state->how == GZIP */
572 /* return 1 if transparent, 0 if processing a gzip stream */