Lines Matching refs:c_stream
28 z_stream c_stream; /* compression stream */ in test_large_deflate() local
31 c_stream.zalloc = zalloc; in test_large_deflate()
32 c_stream.zfree = zfree; in test_large_deflate()
33 c_stream.opaque = (void *)0; in test_large_deflate()
35 err = deflateInit(&c_stream, Z_BEST_COMPRESSION); in test_large_deflate()
38 c_stream.next_out = compr; in test_large_deflate()
39 c_stream.avail_out = (unsigned int)comprLen; in test_large_deflate()
44 c_stream.next_in = uncompr; in test_large_deflate()
45 c_stream.avail_in = (unsigned int)uncomprLen; in test_large_deflate()
46 err = deflate(&c_stream, Z_NO_FLUSH); in test_large_deflate()
48 if (c_stream.avail_in != 0) { in test_large_deflate()
54 deflateParams(&c_stream, Z_NO_COMPRESSION, Z_DEFAULT_STRATEGY); in test_large_deflate()
55 c_stream.next_in = compr; in test_large_deflate()
56 diff = (unsigned int)(c_stream.next_out - compr); in test_large_deflate()
57 c_stream.avail_in = diff; in test_large_deflate()
58 err = deflate(&c_stream, Z_NO_FLUSH); in test_large_deflate()
62 deflateParams(&c_stream, Z_BEST_COMPRESSION, Z_FILTERED); in test_large_deflate()
63 c_stream.next_in = uncompr; in test_large_deflate()
64 c_stream.avail_in = (unsigned int)uncomprLen; in test_large_deflate()
65 err = deflate(&c_stream, Z_NO_FLUSH); in test_large_deflate()
68 err = deflate(&c_stream, Z_FINISH); in test_large_deflate()
73 err = deflateEnd(&c_stream); in test_large_deflate()