Lines Matching defs:gzip
1 /* zran.c -- example of zlib/gzip stream indexing and random access
9 1.2 14 Oct 2018 Handle gzip streams with multiple members
14 for random access of a compressed file. A file containing a zlib or gzip
26 decompressing the input zlib or gzip stream a block at a time, and at the
85 existing list and return NULL. index->gzip is the allocated size of the
87 return, at which point gzip is set to indicate a gzip file or not.
104 index->gzip = 8;
109 else if (index->have == index->gzip) {
110 index->gzip <<= 1;
111 next = realloc(index->list, sizeof(struct point) * index->gzip);
138 int gzip = 0; /* true if reading a gzip file */
152 ret = inflateInit2(&strm, 47); /* automatic zlib or gzip decoding */
158 information in the gzip or zlib stream */
175 /* check for a gzip stream */
178 gzip = 1;
200 if (gzip &&
215 entry point after the zlib or gzip header, and assures that the
235 index->gzip = gzip;
332 if (index->gzip == 0)
336 /* near the end of a gzip member, which might be followed by
337 another gzip member -- skip the gzip trailer and see if
348 /* the input ended after the gzip trailer -- done */
351 /* there is more input, so another gzip member should follow --
352 validate and skip the gzip header */
375 that follows the gzip header */