• Home
  • Raw
  • Download

Lines Matching refs:zlib_init

85   zlibInitState zlib_init;   /* zlib init state */  member
122 z_stream *z, zlibInitState *zlib_init, CURLcode result) in exit_zlib() argument
124 if(*zlib_init == ZLIB_GZIP_HEADER) in exit_zlib()
127 if(*zlib_init != ZLIB_UNINIT) { in exit_zlib()
130 *zlib_init = ZLIB_UNINIT; in exit_zlib()
152 result = exit_zlib(conn, z, &zp->zlib_init, result); in process_trailer()
155 zp->zlib_init = ZLIB_EXTERNAL_TRAILER; in process_trailer()
173 if(zp->zlib_init != ZLIB_INIT && in inflate_stream()
174 zp->zlib_init != ZLIB_INFLATING && in inflate_stream()
175 zp->zlib_init != ZLIB_INIT_GZIP && in inflate_stream()
176 zp->zlib_init != ZLIB_GZIP_INFLATING) in inflate_stream()
177 return exit_zlib(conn, z, &zp->zlib_init, CURLE_WRITE_ERROR); in inflate_stream()
183 return exit_zlib(conn, z, &zp->zlib_init, CURLE_OUT_OF_MEMORY); in inflate_stream()
206 zp->zlib_init = started; /* Data started. */ in inflate_stream()
210 exit_zlib(conn, z, &zp->zlib_init, result); in inflate_stream()
231 if(zp->zlib_init == ZLIB_INIT) { in inflate_stream()
237 zp->zlib_init = ZLIB_INFLATING; in inflate_stream()
242 zp->zlib_init = ZLIB_UNINIT; /* inflateEnd() already called. */ in inflate_stream()
246 result = exit_zlib(conn, z, &zp->zlib_init, process_zlib_error(conn, z)); in inflate_stream()
255 if(nread && zp->zlib_init == ZLIB_INIT) in inflate_stream()
256 zp->zlib_init = started; /* Cannot restart anymore. */ in inflate_stream()
278 zp->zlib_init = ZLIB_INIT; in deflate_init_writer()
293 if(zp->zlib_init == ZLIB_EXTERNAL_TRAILER) in deflate_unencode_write()
306 exit_zlib(conn, z, &zp->zlib_init, CURLE_OK); in deflate_close_writer()
338 zp->zlib_init = ZLIB_INIT_GZIP; /* Transparent gzip decompress state */ in gzip_init_writer()
346 zp->zlib_init = ZLIB_INIT; /* Initial call state */ in gzip_init_writer()
443 if(zp->zlib_init == ZLIB_INIT_GZIP) { in gzip_unencode_write()
454 return exit_zlib(conn, z, &zp->zlib_init, CURLE_WRITE_ERROR); in gzip_unencode_write()
467 switch(zp->zlib_init) { in gzip_unencode_write()
478 zp->zlib_init = ZLIB_GZIP_INFLATING; /* Inflating stream state */ in gzip_unencode_write()
492 return exit_zlib(conn, z, &zp->zlib_init, CURLE_OUT_OF_MEMORY); in gzip_unencode_write()
495 zp->zlib_init = ZLIB_GZIP_HEADER; /* Need more gzip header data state */ in gzip_unencode_write()
501 return exit_zlib(conn, z, &zp->zlib_init, process_zlib_error(conn, z)); in gzip_unencode_write()
514 return exit_zlib(conn, z, &zp->zlib_init, CURLE_OUT_OF_MEMORY); in gzip_unencode_write()
526 zp->zlib_init = ZLIB_GZIP_INFLATING; /* Inflating stream state */ in gzip_unencode_write()
535 return exit_zlib(conn, z, &zp->zlib_init, process_zlib_error(conn, z)); in gzip_unencode_write()
570 exit_zlib(conn, z, &zp->zlib_init, CURLE_OK); in gzip_close_writer()