Home | History | Annotate | Download | only in zlib

Lines Matching refs:GZIP

1 /* gzread.c -- zlib functions for reading gzip files
92 /* Look for gzip header, set up for inflate or copy. state->have must be zero.
95 if there is no gzip header and direct copying will be performed, or it will
96 be set to GZIP for decompression, and the gzip header will be skipped so
102 success or -1 on failure. Failures may include read errors or gzip header
149 /* look for the gzip magic header bytes 31 and 139 */
156 /* we have a gzip header, woo hoo! */
199 state->how = GZIP;
204 /* not a gzip file -- save first byte (31) and fall to raw i/o */
226 If the end of the compressed data is reached, then verify the gzip trailer
229 trailer is verified, state->how is reset to LOOK to look for the next gzip
231 on failure. Failures may include invalid compressed data or a failed gzip
275 /* check gzip trailer if at end of deflate stream */
299 file depending on state->how. If state->how is LOOK, then a gzip header is
302 or GZIP unless the end of the input file has been reached and all data has
309 if (state->how == LOOK) { /* look for gzip header */
320 else if (state->how == GZIP) { /* decompress */
432 else { /* state->how == GZIP */
622 /* return 1 if reading direct, 0 if decompressing a gzip stream */