Searched refs:c_stream (Results 1 – 2 of 2) sorted by relevance
204 z_stream c_stream; /* compression stream */ local208 c_stream.zalloc = zalloc;209 c_stream.zfree = zfree;210 c_stream.opaque = (voidpf)0;212 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION);215 c_stream.next_in = (z_const unsigned char *)hello;216 c_stream.next_out = compr;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 */220 err = deflate(&c_stream, Z_NO_FLUSH);[all …]
89 z_stream c_stream; in block_deflate() local95 c_stream.zalloc = myalloc; in block_deflate()96 c_stream.zfree = myfree; in block_deflate()97 c_stream.opaque = NULL; in block_deflate()99 err = deflateInit(&c_stream, Z_DEFAULT_COMPRESSION); in block_deflate()102 c_stream.next_in = uncompr; in block_deflate()103 c_stream.next_out = compr; in block_deflate()104 c_stream.avail_in = len; in block_deflate()105 c_stream.avail_out = len*2u +512u; in block_deflate()107 while (c_stream.total_in != len && c_stream.total_out < (len*2u + 512u)) { in block_deflate()[all …]