Lines Matching refs:zout
357 z_stream zout; /* Output compression context */ member
412 ctx->zout.zalloc = Z_NULL; in bio_zlib_new()
413 ctx->zout.zfree = Z_NULL; in bio_zlib_new()
435 deflateEnd(&ctx->zout); in bio_zlib_free()
509 z_stream *zout; in bio_zlib_write() local
517 zout = &ctx->zout; in bio_zlib_write()
526 if ((ret = deflateInit(zout, ctx->comp_level)) != Z_OK) { in bio_zlib_write()
531 zout->next_out = ctx->obuf; in bio_zlib_write()
532 zout->avail_out = ctx->obufsize; in bio_zlib_write()
535 zout->next_in = (void *)in; in bio_zlib_write()
536 zout->avail_in = inl; in bio_zlib_write()
543 int tot = inl - zout->avail_in; in bio_zlib_write()
554 if (!zout->avail_in) in bio_zlib_write()
561 zout->next_out = ctx->obuf; in bio_zlib_write()
562 zout->avail_out = ctx->obufsize; in bio_zlib_write()
564 ret = deflate(zout, 0); in bio_zlib_write()
570 ctx->ocount = ctx->obufsize - zout->avail_out; in bio_zlib_write()
578 z_stream *zout; in bio_zlib_flush() local
585 zout = &ctx->zout; in bio_zlib_flush()
588 zout->next_in = NULL; in bio_zlib_flush()
589 zout->avail_in = 0; in bio_zlib_flush()
608 zout->next_out = ctx->obuf; in bio_zlib_flush()
609 zout->avail_out = ctx->obufsize; in bio_zlib_flush()
611 ret = deflate(zout, Z_FINISH); in bio_zlib_flush()
619 ctx->ocount = ctx->obufsize - zout->avail_out; in bio_zlib_flush()