Lines Matching refs:zs
93 z_stream zs; in nfcsnoop_compress() local
94 zs.zalloc = Z_NULL; in nfcsnoop_compress()
95 zs.zfree = Z_NULL; in nfcsnoop_compress()
96 zs.opaque = Z_NULL; in nfcsnoop_compress()
98 if (deflateInit(&zs, Z_DEFAULT_COMPRESSION) != Z_OK) return false; in nfcsnoop_compress()
107 zs.avail_in = in nfcsnoop_compress()
109 zs.next_in = block_src.get(); in nfcsnoop_compress()
112 zs.avail_out = BLOCK_SIZE; in nfcsnoop_compress()
113 zs.next_out = block_dst.get(); in nfcsnoop_compress()
115 int err = deflate(&zs, (i == num_blocks - 1) ? Z_FINISH : Z_NO_FLUSH); in nfcsnoop_compress()
120 const size_t length = BLOCK_SIZE - zs.avail_out; in nfcsnoop_compress()
122 } while (zs.avail_out == 0); in nfcsnoop_compress()
125 deflateEnd(&zs); in nfcsnoop_compress()