Home
last modified time | relevance | path

Searched refs:avail_out (Results 1 – 25 of 88) sorted by relevance

1234

/freebsd/sys/contrib/zstd/zlibWrapper/examples/
H A Dfitblk.c95 } while (def->avail_out != 0 && flush == Z_SYNC_FLUSH); in partcompress()
112 inf->avail_out = RAWLEN; in recompress()
123 def->avail_in = RAWLEN - inf->avail_out; in recompress()
125 if (inf->avail_out != 0) in recompress()
131 } while (ret != Z_STREAM_END && def->avail_out != 0); in recompress()
171 def.avail_out = size + EXCESS; in main()
180 if (ret == Z_STREAM_END && def.avail_out >= EXCESS) { in main()
182 have = size + EXCESS - def.avail_out; in main()
212 def.avail_out = size + EXCESS; in main()
229 def.avail_out = size; in main()
[all …]
H A Dfitblk_original.c88 } while (def->avail_out != 0 && flush == Z_NO_FLUSH); in partcompress()
104 inf->avail_out = RAWLEN; in recompress()
113 def->avail_in = RAWLEN - inf->avail_out; in recompress()
115 if (inf->avail_out != 0) in recompress()
119 } while (ret != Z_STREAM_END && def->avail_out != 0); in recompress()
156 def.avail_out = size + EXCESS; in main()
163 if (ret == Z_STREAM_END && def.avail_out >= EXCESS) { in main()
165 have = size + EXCESS - def.avail_out; in main()
195 def.avail_out = size + EXCESS; in main()
210 def.avail_out = size; in main()
[all …]
H A Dminigzip.c256 strm->avail_out = BUFLEN;
258 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
259 } while (strm->avail_out == 0);
281 strm->avail_out = len;
296 } while (strm->avail_out);
297 return len - strm->avail_out;
316 strm->avail_out = BUFLEN;
318 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
319 } while (strm->avail_out == 0);
H A Dexample.c244 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
250 c_stream.avail_out = 1;
284 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */
319 c_stream.avail_out = (uInt)comprLen;
380 d_stream.avail_out = (uInt)uncomprLen;
418 c_stream.avail_out = (uInt)*comprLen;
458 d_stream.avail_out = (uInt)uncomprLen;
502 c_stream.avail_out = (uInt)comprLen;
539 d_stream.avail_out = (uInt)uncomprLen;
H A Dexample_original.c236 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
242 c_stream.avail_out = 1;
276 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */
311 c_stream.avail_out = (uInt)comprLen;
372 d_stream.avail_out = (uInt)uncomprLen;
410 c_stream.avail_out = (uInt)*comprLen;
450 d_stream.avail_out = (uInt)uncomprLen;
494 c_stream.avail_out = (uInt)comprLen;
531 d_stream.avail_out = (uInt)uncomprLen;
/freebsd/usr.sbin/ppp/
H A Ddeflate.c105 state->cx.avail_out = DEFLATE_CHUNK_LEN - 2; in DeflateOutput()
134 if (state->cx.avail_out == 0) { in DeflateOutput()
140 state->cx.avail_out = DEFLATE_CHUNK_LEN; in DeflateOutput()
249 state->cx.avail_out = 1; in DeflateInput()
279 if (state->cx.avail_out == 0) { in DeflateInput()
286 state->cx.avail_out = DEFLATE_CHUNK_LEN-1; in DeflateInput()
295 state->cx.avail_out = DEFLATE_CHUNK_LEN; in DeflateInput()
328 state->cx.avail_out = sizeof garbage; in DeflateInput()
375 state->cx.avail_out = sizeof garbage; in DeflateDictSetup()
405 if (state->cx.avail_out == 0) { in DeflateDictSetup()
[all …]
/freebsd/sys/contrib/zlib/
H A Duncompr.c55 stream.avail_out = 0; in uncompress2()
58 if (stream.avail_out == 0) { in uncompress2()
59 stream.avail_out = left > (uLong)max ? max : (uInt)left; in uncompress2()
60 left -= stream.avail_out; in uncompress2()
78 err == Z_BUF_ERROR && left + stream.avail_out ? Z_DATA_ERROR : in uncompress2()
H A Dcompress.c40 stream.avail_out = 0; in compress2()
45 if (stream.avail_out == 0) { in compress2()
46 stream.avail_out = left > (uLong)max ? max : (uInt)left; in compress2()
47 left -= stream.avail_out; in compress2()
/freebsd/contrib/libfido2/src/
H A Dcompress.c74 zs.avail_out = olen; in rfc1951_inflate()
81 if (zs.avail_out != 0) { in rfc1951_inflate()
82 fido_log_debug("%s: %u != 0", __func__, zs.avail_out); in rfc1951_inflate()
129 zs.avail_out = olen; in rfc1951_deflate()
136 if (zs.avail_out >= out->len) { in rfc1951_deflate()
137 fido_log_debug("%s: %u > %zu", __func__, zs.avail_out, in rfc1951_deflate()
142 out->len -= zs.avail_out; in rfc1951_deflate()
/freebsd/crypto/openssl/crypto/comp/
H A Dc_zlib.c178 state->ostream.avail_out = olen; in zlib_stateful_compress_block()
183 return olen - state->ostream.avail_out; in zlib_stateful_compress_block()
199 state->istream.avail_out = olen; in zlib_stateful_expand_block()
204 return olen - state->istream.avail_out; in zlib_stateful_expand_block()
394 zin->avail_out = (unsigned int)outl; in bio_zlib_read()
406 return outl - zin->avail_out; in bio_zlib_read()
416 int tot = outl - zin->avail_out; in bio_zlib_read()
456 zout->avail_out = ctx->obufsize; in bio_zlib_write()
486 zout->avail_out = ctx->obufsize; in bio_zlib_write()
494 ctx->ocount = ctx->obufsize - zout->avail_out; in bio_zlib_write()
[all …]
/freebsd/sys/opencrypto/
H A Dcryptodeflate.c131 zbuf.avail_out = bufp->size; in deflate_global()
148 zbuf.avail_in, zbuf.avail_out, zbuf.total_out); in deflate_global()
153 zbuf.avail_in, zbuf.avail_out, zbuf.total_out); in deflate_global()
160 } else if (zbuf.avail_out == 0) { in deflate_global()
176 zbuf.avail_out = bufp->size; in deflate_global()
181 zbuf.avail_in, zbuf.avail_out, zbuf.total_out); in deflate_global()
/freebsd/sys/contrib/zstd/zlibWrapper/
H A Dzstd_zlibwrapper.c410 zwc->outBuffer.size = strm->avail_out; in z_deflate()
418 strm->avail_out -= zwc->outBuffer.pos; in z_deflate()
436 zwc->outBuffer.size = strm->avail_out; in z_deflate()
443 strm->avail_out -= zwc->outBuffer.pos; in z_deflate()
454 zwc->outBuffer.size = strm->avail_out; in z_deflate()
461 strm->avail_out -= zwc->outBuffer.pos; in z_deflate()
788 strm2.avail_out = strm->avail_out; in z_inflate()
800 strm->avail_out = 0; in z_inflate()
812 strm->avail_out = strm2.avail_out; in z_inflate()
892 zwd->outBuffer.size = strm->avail_out; in z_inflate()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-zlib.c105 stream.avail_out = (uInt)*destLen; in z_compress_level()
107 if ((size_t)stream.avail_out != *destLen) in z_compress_level()
159 stream.avail_out = (uInt)*destLen; in z_uncompress()
161 if ((size_t)stream.avail_out != *destLen) in z_uncompress()
/freebsd/contrib/bzip2/
H A Dbzlib.c352 s->strm->avail_out--; in copy_output_until_stop()
555 s->strm->avail_out--; in unRLE_obuf_to_output_FAST()
725 s->strm->avail_out--; in unRLE_obuf_to_output_SMALL()
774 s->strm->avail_out--; in unRLE_obuf_to_output_SMALL()
1186 bzf->strm.avail_out = len; in BZ_API()
1216 if (bzf->strm.avail_out == 0) in BZ_API()
1282 strm.avail_out = *destLen; in BZ_API()
1289 *destLen -= strm.avail_out; in BZ_API()
1330 strm.avail_out = *destLen; in BZ_API()
1337 *destLen -= strm.avail_out; in BZ_API()
[all …]
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_zlib.c139 stream.avail_out = (uInt)*destLen; in z_compress_level()
142 if ((size_t)stream.avail_out != *destLen) in z_compress_level()
193 stream.avail_out = (uInt)*destLen; in z_uncompress()
195 if ((size_t)stream.avail_out != *destLen) in z_uncompress()
/freebsd/sys/contrib/zlib/test/
H A Dminigzip.c223 strm->avail_out = BUFLEN; in gzwrite()
225 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file); in gzwrite()
226 } while (strm->avail_out == 0); in gzwrite()
242 strm->avail_out = len; in gzread()
257 } while (strm->avail_out); in gzread()
258 return len - strm->avail_out; in gzread()
273 strm->avail_out = BUFLEN; in gzclose()
275 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file); in gzclose()
276 } while (strm->avail_out == 0); in gzclose()
H A Dexample.c182 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */ in test_deflate()
188 c_stream.avail_out = 1; in test_deflate()
220 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */ in test_inflate()
253 c_stream.avail_out = (uInt)comprLen; in test_large_deflate()
312 d_stream.avail_out = (uInt)uncomprLen; in test_large_inflate()
347 c_stream.avail_out = (uInt)*comprLen; in test_flush()
385 d_stream.avail_out = (uInt)uncomprLen; in test_sync()
425 c_stream.avail_out = (uInt)comprLen; in test_dict_deflate()
460 d_stream.avail_out = (uInt)uncomprLen; in test_dict_inflate()
/freebsd/usr.bin/mkuzip/
H A Dmkuz_lzma.c95 ulp->strm.avail_out = oblk->alen; in mkuz_lzma_compress()
102 (oblk->alen - ulp->strm.avail_out)); in mkuz_lzma_compress()
108 oblk->info.len = oblk->alen - ulp->strm.avail_out; in mkuz_lzma_compress()
/freebsd/usr.sbin/fifolog/lib/
H A Dfifolog_reader.c213 q = fr->obuf + (fr->olen - fr->ff->zs->avail_out); in fifolog_reader_chop()
280 zs->avail_out = fr->olen; in fifolog_reader_process()
297 zs->avail_out, fr->olen); in fifolog_reader_process()
312 if (zs->avail_out != fr->olen) { in fifolog_reader_process()
313 q = fr->obuf + (fr->olen - zs->avail_out); in fifolog_reader_process()
317 zs->avail_out = fr->olen - (q - p); in fifolog_reader_process()
/freebsd/usr.bin/gzip/
H A Dunbzip2.c85 bzs.avail_out = BUFLEN; in unbzip2()
103 if (!tflag && bzs.avail_out != BUFLEN) { in unbzip2()
106 n = write(out, outbuf, BUFLEN - bzs.avail_out); in unbzip2()
H A Dunxz.c67 strm.avail_out = 0; in unxz()
73 strm.avail_out = sizeof(obuf); in unxz()
99 if (strm.avail_out == 0 || ret != LZMA_OK) { in unxz()
100 const size_t write_size = sizeof(obuf) - strm.avail_out; in unxz()
106 strm.avail_out = sizeof(obuf); in unxz()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_set_format_7zip.c127 size_t avail_out; member
1726 strm->avail_out = (uInt)lastrm->avail_out; in compression_init_encoder_deflate()
1759 strm->avail_out = (uInt)lastrm->avail_out; in compression_code_deflate()
1767 lastrm->avail_out = strm->avail_out; in compression_code_deflate()
1840 strm->avail_out = (uint32_t)lastrm->avail_out; in compression_init_encoder_bzip2()
1873 strm->avail_out = (uint32_t)lastrm->avail_out; in compression_code_bzip2()
1884 lastrm->avail_out = strm->avail_out; in compression_code_bzip2()
2057 strm->avail_out = lastrm->avail_out; in compression_code_lzma()
2065 lastrm->avail_out = strm->avail_out; in compression_code_lzma()
2139 lastrm->avail_out--; in ppmd_write()
[all …]
H A Darchive_write_add_filter_gzip.c208 data->stream.avail_out = (uInt)data->compressed_buffer_size; in archive_compressor_gzip_open()
231 data->stream.avail_out -= 10; in archive_compressor_gzip_open()
312 data->compressed_buffer_size - data->stream.avail_out); in archive_compressor_gzip_close()
352 if (data->stream.avail_out == 0) { in drive_compressor()
359 data->stream.avail_out = in drive_compressor()
/freebsd/contrib/libevent/test/
H A Dregress_zlib.c154 p->avail_out = v_out[0].iov_len; in zlib_input_filter()
161 nwrite = v_out[0].iov_len - p->avail_out; in zlib_input_filter()
208 p->avail_out = v_out[0].iov_len; in zlib_output_filter()
215 nwrite = v_out[0].iov_len - p->avail_out; in zlib_output_filter()
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_zlib.c154 p->avail_out = v_out[0].iov_len; in zlib_input_filter()
161 nwrite = v_out[0].iov_len - p->avail_out; in zlib_input_filter()
208 p->avail_out = v_out[0].iov_len; in zlib_output_filter()
215 nwrite = v_out[0].iov_len - p->avail_out; in zlib_output_filter()

1234