Lines Matching refs:zs
317 z_stream zs; in z_compress() local
320 bzero(&zs, sizeof (z_stream)); in z_compress()
321 zs.next_in = (uchar_t *)src; in z_compress()
322 zs.avail_in = srclen; in z_compress()
323 zs.next_out = dst; in z_compress()
324 zs.avail_out = *dstlen; in z_compress()
326 if ((err = zlib.z_initcomp(&zs, Z_BEST_COMPRESSION, ZLIB_VERSION, in z_compress()
330 if ((err = zlib.z_compress(&zs, Z_FINISH)) != Z_STREAM_END) { in z_compress()
331 (void) zlib.z_finicomp(&zs); in z_compress()
335 *dstlen = zs.total_out; in z_compress()
336 return (zlib.z_finicomp(&zs)); in z_compress()