Lines Matching refs:d_stream
204 z_stream d_stream; /* decompression stream */ in test_inflate() local
208 d_stream.zalloc = zalloc; in test_inflate()
209 d_stream.zfree = zfree; in test_inflate()
210 d_stream.opaque = (voidpf)0; in test_inflate()
212 d_stream.next_in = compr; in test_inflate()
213 d_stream.avail_in = 0; in test_inflate()
214 d_stream.next_out = uncompr; in test_inflate()
216 err = inflateInit(&d_stream); in test_inflate()
219 while (d_stream.total_out < uncomprLen && d_stream.total_in < comprLen) { in test_inflate()
220 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */ in test_inflate()
221 err = inflate(&d_stream, Z_NO_FLUSH); in test_inflate()
226 err = inflateEnd(&d_stream); in test_inflate()
296 z_stream d_stream; /* decompression stream */ in test_large_inflate() local
300 d_stream.zalloc = zalloc; in test_large_inflate()
301 d_stream.zfree = zfree; in test_large_inflate()
302 d_stream.opaque = (voidpf)0; in test_large_inflate()
304 d_stream.next_in = compr; in test_large_inflate()
305 d_stream.avail_in = (uInt)comprLen; in test_large_inflate()
307 err = inflateInit(&d_stream); in test_large_inflate()
311 d_stream.next_out = uncompr; /* discard the output */ in test_large_inflate()
312 d_stream.avail_out = (uInt)uncomprLen; in test_large_inflate()
313 err = inflate(&d_stream, Z_NO_FLUSH); in test_large_inflate()
318 err = inflateEnd(&d_stream); in test_large_inflate()
321 if (d_stream.total_out != 2*uncomprLen + uncomprLen/2) { in test_large_inflate()
322 fprintf(stderr, "bad large inflate: %ld\n", d_stream.total_out); in test_large_inflate()
370 z_stream d_stream; /* decompression stream */ in test_sync() local
374 d_stream.zalloc = zalloc; in test_sync()
375 d_stream.zfree = zfree; in test_sync()
376 d_stream.opaque = (voidpf)0; in test_sync()
378 d_stream.next_in = compr; in test_sync()
379 d_stream.avail_in = 2; /* just read the zlib header */ in test_sync()
381 err = inflateInit(&d_stream); in test_sync()
384 d_stream.next_out = uncompr; in test_sync()
385 d_stream.avail_out = (uInt)uncomprLen; in test_sync()
387 err = inflate(&d_stream, Z_NO_FLUSH); in test_sync()
390 d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */ in test_sync()
391 err = inflateSync(&d_stream); /* but skip the damaged part */ in test_sync()
394 err = inflate(&d_stream, Z_FINISH); in test_sync()
399 err = inflateEnd(&d_stream); in test_sync()
445 z_stream d_stream; /* decompression stream */ in test_dict_inflate() local
449 d_stream.zalloc = zalloc; in test_dict_inflate()
450 d_stream.zfree = zfree; in test_dict_inflate()
451 d_stream.opaque = (voidpf)0; in test_dict_inflate()
453 d_stream.next_in = compr; in test_dict_inflate()
454 d_stream.avail_in = (uInt)comprLen; in test_dict_inflate()
456 err = inflateInit(&d_stream); in test_dict_inflate()
459 d_stream.next_out = uncompr; in test_dict_inflate()
460 d_stream.avail_out = (uInt)uncomprLen; in test_dict_inflate()
463 err = inflate(&d_stream, Z_NO_FLUSH); in test_dict_inflate()
466 if (d_stream.adler != dictId) { in test_dict_inflate()
470 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary, in test_dict_inflate()
476 err = inflateEnd(&d_stream); in test_dict_inflate()