Home
last modified time | relevance | path

Searched refs:c_stream (Results 1 – 4 of 4) sorted by relevance

/freebsd-13.1/sys/contrib/zlib/test/
H A Dexample.c208 c_stream.zalloc = zalloc;
209 c_stream.zfree = zfree;
218 while (c_stream.total_in != len && c_stream.total_out < comprLen) {
219 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
286 c_stream.zalloc = zalloc;
287 c_stream.zfree = zfree;
310 c_stream.next_in = compr;
384 c_stream.zfree = zfree;
392 c_stream.avail_in = 3;
464 c_stream.zfree = zfree;
[all …]
/freebsd-13.1/sys/contrib/zstd/zlibWrapper/examples/
H A Dexample.c233 c_stream.zalloc = zalloc;
234 c_stream.zfree = zfree;
243 while (c_stream.total_in != len && c_stream.total_out < comprLen) {
244 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
311 c_stream.zalloc = zalloc;
312 c_stream.zfree = zfree;
335 c_stream.next_in = compr;
409 c_stream.zfree = zfree;
417 c_stream.avail_in = 3;
490 c_stream.zfree = zfree;
[all …]
H A Dexample_original.c225 c_stream.zalloc = zalloc;
226 c_stream.zfree = zfree;
235 while (c_stream.total_in != len && c_stream.total_out < comprLen) {
236 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
303 c_stream.zalloc = zalloc;
304 c_stream.zfree = zfree;
327 c_stream.next_in = compr;
401 c_stream.zfree = zfree;
409 c_stream.avail_in = 3;
482 c_stream.zfree = zfree;
[all …]
/freebsd-13.1/sys/dev/random/
H A Dunit_test.c90 z_stream c_stream; in block_deflate() local
96 c_stream.zalloc = myalloc; in block_deflate()
97 c_stream.zfree = myfree; in block_deflate()
98 c_stream.opaque = NULL; in block_deflate()
103 c_stream.next_in = uncompr; in block_deflate()
104 c_stream.next_out = compr; in block_deflate()
105 c_stream.avail_in = len; in block_deflate()
106 c_stream.avail_out = len*2u +512u; in block_deflate()
108 while (c_stream.total_in != len && c_stream.total_out < (len*2u + 512u)) { in block_deflate()
117 err = deflate(&c_stream, Z_FINISH); in block_deflate()
[all …]