Home | History | Annotate | Download | only in zlib

Lines Matching refs:GZIP

1 /* gzread.c -- zlib functions for reading gzip files
71 /* Look for gzip header, set up for inflate or copy. state->x.have must be 0.
74 if there is no gzip header and direct copying will be performed, or it will
75 be set to GZIP for decompression. If direct copying, then leftover input
123 /* look for gzip magic bytes -- if there, do gzip decoding (note: there is
125 gzip file, to wit, if a single 31 byte is written, then we cannot tell
126 whether this is a single-byte file, or just a partially written gzip
127 file -- for here we assume that if a gzip file is being written, then
129 single byte is sufficient indication that it is not a gzip file) */
133 state->how = GZIP;
138 /* no gzip header -- if we were decoding gzip before, then this is trailing
163 data. If the gzip stream completes, state->how is reset to LOOK to look for
164 the next gzip stream or raw data, once state->x.have is depleted. Returns 0
206 /* if the gzip stream completed successfully, look for another */
216 file depending on state->how. If state->how is LOOK, then a gzip header is
218 otherwise 0. gz_fetch() will leave state->how as COPY or GZIP unless the
227 case LOOK: /* -> LOOK, COPY (only if never GZIP), or GZIP */
239 case GZIP: /* -> GZIP or LOOK (if end of gzip stream) */
355 else { /* state->how == GZIP */
552 /* return 1 if transparent, 0 if processing a gzip stream */