Lines Matching refs:z

218 		z_stream z;  member
880 z_stream * const z = &hctx->u.z; in stream_deflate_init() local
881 z->zalloc = Z_NULL; in stream_deflate_init()
882 z->zfree = Z_NULL; in stream_deflate_init()
883 z->opaque = Z_NULL; in stream_deflate_init()
884 z->total_in = 0; in stream_deflate_init()
885 z->total_out = 0; in stream_deflate_init()
886 z->next_out = (unsigned char *)hctx->output->ptr; in stream_deflate_init()
887 z->avail_out = hctx->output->size; in stream_deflate_init()
898 if (Z_OK != deflateInit2(z, in stream_deflate_init()
913 z_stream * const z = &(hctx->u.z); in stream_deflate_compress() local
917 *((const unsigned char **)&z->next_in) = start; in stream_deflate_compress()
918 z->avail_in = st_size; in stream_deflate_compress()
923 if (Z_OK != deflate(z, Z_NO_FLUSH)) return -1; in stream_deflate_compress()
925 if (z->avail_out == 0 || z->avail_in > 0) { in stream_deflate_compress()
926 len = hctx->output->size - z->avail_out; in stream_deflate_compress()
930 z->next_out = (unsigned char *)hctx->output->ptr; in stream_deflate_compress()
931 z->avail_out = hctx->output->size; in stream_deflate_compress()
933 } while (z->avail_in > 0); in stream_deflate_compress()
939 z_stream * const z = &(hctx->u.z); in stream_deflate_flush() local
949 rc = deflate(z, Z_FINISH); in stream_deflate_flush()
957 rc = deflate(z, Z_SYNC_FLUSH); in stream_deflate_flush()
959 } else if (z->avail_in > 0) { in stream_deflate_flush()
960 rc = deflate(z, Z_NO_FLUSH); in stream_deflate_flush()
965 len = hctx->output->size - z->avail_out; in stream_deflate_flush()
966 if (z->avail_out == 0 || (len > 0 && (end || p->conf.sync_flush))) { in stream_deflate_flush()
970 z->next_out = (unsigned char *)hctx->output->ptr; in stream_deflate_flush()
971 z->avail_out = hctx->output->size; in stream_deflate_flush()
973 } while (z->avail_in != 0 || !done); in stream_deflate_flush()
979 z_stream * const z = &(hctx->u.z); in stream_deflate_end() local
980 int rc = deflateEnd(z); in stream_deflate_end()
983 if (z->msg != NULL) { in stream_deflate_end()
985 "deflateEnd error ret=%d, msg=%s", rc, z->msg); in stream_deflate_end()