Lines Matching refs:d_stream
63 z_stream d_stream; /* decompression stream */ in test_sync() local
65 d_stream.zalloc = zalloc; in test_sync()
66 d_stream.zfree = zfree; in test_sync()
67 d_stream.opaque = (void *)0; in test_sync()
69 d_stream.next_in = compr; in test_sync()
70 d_stream.avail_in = 2; /* just read the zlib header */ in test_sync()
72 err = inflateInit(&d_stream); in test_sync()
75 d_stream.next_out = uncompr; in test_sync()
76 d_stream.avail_out = (unsigned int)uncomprLen; in test_sync()
78 err = inflate(&d_stream, Z_NO_FLUSH); in test_sync()
81 d_stream.avail_in = (unsigned int)comprLen - 2; /* read all compressed data */ in test_sync()
82 err = inflateSync(&d_stream); /* but skip the damaged part */ in test_sync()
85 err = inflate(&d_stream, Z_FINISH); in test_sync()
91 err = inflateEnd(&d_stream); in test_sync()