Home
last modified time | relevance | path

Searched refs:d_stream (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/contrib/zlib/test/
H A Dexample.c204 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()
[all …]
/freebsd/sys/contrib/zstd/zlibWrapper/examples/
H A Dexample.c268 z_stream d_stream; /* decompression stream */ local
272 d_stream.zalloc = zalloc;
273 d_stream.zfree = zfree;
274 d_stream.opaque = (voidpf)0;
276 d_stream.next_in = compr;
277 d_stream.avail_in = 0;
278 d_stream.next_out = uncompr;
280 err = inflateInit(&d_stream);
283 while (d_stream.total_out < uncomprLen && d_stream.total_in < comprLen) {
284 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */
[all …]
H A Dexample_original.c260 z_stream d_stream; /* decompression stream */ local
264 d_stream.zalloc = zalloc;
265 d_stream.zfree = zfree;
266 d_stream.opaque = (voidpf)0;
268 d_stream.next_in = compr;
269 d_stream.avail_in = 0;
270 d_stream.next_out = uncompr;
272 err = inflateInit(&d_stream);
275 while (d_stream.total_out < uncomprLen && d_stream.total_in < comprLen) {
276 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */
[all …]