Lines Matching refs:c_stream
26 z_stream c_stream; /* compression stream */ in test_flush() local
30 c_stream.zalloc = zalloc; in test_flush()
31 c_stream.zfree = zfree; in test_flush()
32 c_stream.opaque = (void *)0; in test_flush()
34 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION); in test_flush()
37 c_stream.next_in = (Bytef *)data; in test_flush()
38 c_stream.next_out = compr; in test_flush()
39 c_stream.avail_in = 3; in test_flush()
40 c_stream.avail_out = (unsigned int)*comprLen; in test_flush()
41 err = deflate(&c_stream, Z_FULL_FLUSH); in test_flush()
45 c_stream.avail_in = len - 3; in test_flush()
47 err = deflate(&c_stream, Z_FINISH); in test_flush()
51 err = deflateEnd(&c_stream); in test_flush()
54 *comprLen = (z_size_t)c_stream.total_out; in test_flush()