Home
last modified time | relevance | path

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

/freebsd-14.2/sys/contrib/zlib/test/
H A Dexample.c171 c_stream.zalloc = zalloc; in test_deflate()
172 c_stream.zfree = zfree; in test_deflate()
181 while (c_stream.total_in != len && c_stream.total_out < comprLen) { in test_deflate()
182 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */ in test_deflate()
245 c_stream.zalloc = zalloc; in test_large_deflate()
246 c_stream.zfree = zfree; in test_large_deflate()
269 c_stream.next_in = compr; in test_large_deflate()
338 c_stream.zfree = zfree; in test_flush()
346 c_stream.avail_in = 3; in test_flush()
413 c_stream.zfree = zfree; in test_dict_deflate()
[all …]
/freebsd-14.2/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-14.2/sys/dev/random/
H A Dunit_test.c88 z_stream c_stream; in block_deflate() local
94 c_stream.zalloc = myalloc; in block_deflate()
95 c_stream.zfree = myfree; in block_deflate()
96 c_stream.opaque = NULL; in block_deflate()
101 c_stream.next_in = uncompr; in block_deflate()
102 c_stream.next_out = compr; in block_deflate()
103 c_stream.avail_in = len; in block_deflate()
104 c_stream.avail_out = len*2u +512u; in block_deflate()
106 while (c_stream.total_in != len && c_stream.total_out < (len*2u + 512u)) { in block_deflate()
115 err = deflate(&c_stream, Z_FINISH); in block_deflate()
[all …]