Lines Matching refs:zs
137 z_stream zs; in btsnoop_compress() local
138 zs.zalloc = Z_NULL; in btsnoop_compress()
139 zs.zfree = Z_NULL; in btsnoop_compress()
140 zs.opaque = Z_NULL; in btsnoop_compress()
142 if (deflateInit(&zs, Z_DEFAULT_COMPRESSION) != Z_OK) return false; in btsnoop_compress()
151 zs.avail_in = in btsnoop_compress()
153 zs.next_in = block_src; in btsnoop_compress()
156 zs.avail_out = BLOCK_SIZE; in btsnoop_compress()
157 zs.next_out = block_dst; in btsnoop_compress()
159 int err = deflate(&zs, (i == num_blocks - 1) ? Z_FINISH : Z_NO_FLUSH); in btsnoop_compress()
165 const size_t length = BLOCK_SIZE - zs.avail_out; in btsnoop_compress()
167 } while (zs.avail_out == 0); in btsnoop_compress()
170 deflateEnd(&zs); in btsnoop_compress()