Lines Matching refs:zs
147 z_stream zs; in btsnoop_compress() local
148 zs.zalloc = Z_NULL; in btsnoop_compress()
149 zs.zfree = Z_NULL; in btsnoop_compress()
150 zs.opaque = Z_NULL; in btsnoop_compress()
152 if (deflateInit(&zs, Z_DEFAULT_COMPRESSION) != Z_OK) return false; in btsnoop_compress()
161 zs.avail_in = in btsnoop_compress()
163 zs.next_in = block_src; in btsnoop_compress()
166 zs.avail_out = BLOCK_SIZE; in btsnoop_compress()
167 zs.next_out = block_dst; in btsnoop_compress()
169 int err = deflate(&zs, (i == num_blocks - 1) ? Z_FINISH : Z_NO_FLUSH); in btsnoop_compress()
175 const size_t length = BLOCK_SIZE - zs.avail_out; in btsnoop_compress()
177 } while (zs.avail_out == 0); in btsnoop_compress()
180 deflateEnd(&zs); in btsnoop_compress()