Home | History | Annotate | Download | only in zlib_v128

Lines Matching refs:GZIP

1 /* gzread.c -- zlib functions for reading gzip files
77 /* Look for gzip header, set up for inflate or copy. state->x.have must be 0.
80 if there is no gzip header and direct copying will be performed, or it will
81 be set to GZIP for decompression. If direct copying, then leftover input
129 /* look for gzip magic bytes -- if there, do gzip decoding (note: there is
131 gzip file, to wit, if a single 31 byte is written, then we cannot tell
132 whether this is a single-byte file, or just a partially written gzip
133 file -- for here we assume that if a gzip file is being written, then
135 single byte is sufficient indication that it is not a gzip file) */
139 state->how = GZIP;
144 /* no gzip header -- if we were decoding gzip before, then this is trailing
169 data. If the gzip stream completes, state->how is reset to LOOK to look for
170 the next gzip stream or raw data, once state->x.have is depleted. Returns 0
212 /* if the gzip stream completed successfully, look for another */
222 file depending on state->how. If state->how is LOOK, then a gzip header is
224 otherwise 0. gz_fetch() will leave state->how as COPY or GZIP unless the
233 case LOOK: /* -> LOOK, COPY (only if never GZIP), or GZIP */
245 case GZIP: /* -> GZIP or LOOK (if end of gzip stream) */
361 else { /* state->how == GZIP */
562 /* return 1 if transparent, 0 if processing a gzip stream */