/freebsd/sys/contrib/zstd/zlibWrapper/examples/ |
H A D | fitblk.c | 91 …t=%d total_out=%d\n", (int)def->avail_in, (int)def->total_in, (int)def->avail_out, (int)def->total… in partcompress() 93 …total_out=%d\n", ret, (int)def->avail_in, (int)def->total_in, (int)def->avail_out, (int)def->total… in partcompress() 95 } while (def->avail_out != 0 && flush == Z_SYNC_FLUSH); in partcompress() 112 inf->avail_out = RAWLEN; in recompress() 114 …t=%d total_out=%d\n", (int)inf->avail_in, (int)inf->total_in, (int)inf->avail_out, (int)inf->total… in recompress() 116 …t=%d total_out=%d\n", (int)inf->avail_in, (int)inf->total_in, (int)inf->avail_out, (int)inf->total… in recompress() 123 def->avail_in = RAWLEN - inf->avail_out; in recompress() 125 if (inf->avail_out != 0) in recompress() 127 …t=%d total_out=%d\n", (int)def->avail_in, (int)def->total_in, (int)def->avail_out, (int)def->total… in recompress() 129 …total_out=%d\n", ret, (int)def->avail_in, (int)def->total_in, (int)def->avail_out, (int)def->total… in recompress() [all …]
|
H A D | fitblk_original.c | 88 } 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 D | minigzip.c | 256 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 D | example.c | 244 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 D | example_original.c | 236 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 D | deflate.c | 105 state->cx.avail_out = DEFLATE_CHUNK_LEN - 2; in DeflateOutput() 123 if (flush == Z_SYNC_FLUSH && state->cx.avail_out != 0) in DeflateOutput() 134 if (state->cx.avail_out == 0) { in DeflateOutput() 140 state->cx.avail_out = DEFLATE_CHUNK_LEN; in DeflateOutput() 144 olen += (mo->m_len = DEFLATE_CHUNK_LEN - state->cx.avail_out); in DeflateOutput() 249 state->cx.avail_out = 1; in DeflateInput() 268 if (flush == Z_SYNC_FLUSH && state->cx.avail_out != 0) in DeflateInput() 279 if (state->cx.avail_out == 0) { in DeflateInput() 286 state->cx.avail_out = DEFLATE_CHUNK_LEN-1; in DeflateInput() 288 state->cx.avail_out = DEFLATE_CHUNK_LEN-2; in DeflateInput() [all …]
|
/freebsd/sys/contrib/zlib/ |
H A D | uncompr.c | 55 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 D | compress.c | 40 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 D | compress.c | 74 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 D | c_zlib.c | 178 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() 405 if ((ret == Z_STREAM_END) || !zin->avail_out) 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() [all …]
|
/freebsd/sys/contrib/zstd/zlibWrapper/ |
H A D | zstd_zlibwrapper.c | 368 … (int)flush, (int)strm->avail_in, (int)strm->avail_out, (int)strm->total_in, (int)strm->total_out); in z_deflate() 404 …otal_in=%d total_out=%d\n", (int)flush, (int)strm->avail_in, (int)strm->avail_out, (int)strm->tota… in z_deflate() 410 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() 439 …LOG_WRAPPERC("deflate ZSTD_endStream dstCapacity=%d bytesLeft=%d\n", (int)strm->avail_out, (int)by… in z_deflate() 443 strm->avail_out -= zwc->outBuffer.pos; in z_deflate() 447 (int)strm->total_in, (int)strm->avail_out, (int)strm->total_out); in z_deflate() 454 zwc->outBuffer.size = strm->avail_out; in z_deflate() 457 …LOG_WRAPPERC("deflate ZSTD_flushStream dstCapacity=%d bytesLeft=%d\n", (int)strm->avail_out, (int)… in z_deflate() [all …]
|
/freebsd/sys/opencrypto/ |
H A D | cryptodeflate.c | 131 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/openzfs/module/os/linux/spl/ |
H A D | spl-zlib.c | 104 stream.avail_out = (uInt)*destLen; in z_compress_level() 106 if ((size_t)stream.avail_out != *destLen) in z_compress_level() 158 stream.avail_out = (uInt)*destLen; in z_uncompress() 160 if ((size_t)stream.avail_out != *destLen) in z_uncompress()
|
/freebsd/contrib/bzip2/ |
H A D | bzlib.c | 344 if (s->strm->avail_out == 0) break; in copy_output_until_stop() 352 s->strm->avail_out--; in copy_output_until_stop() 549 if (s->strm->avail_out == 0) return False; in unRLE_obuf_to_output_FAST() 555 s->strm->avail_out--; in unRLE_obuf_to_output_FAST() 604 unsigned int cs_avail_out = s->strm->avail_out; in unRLE_obuf_to_output_FAST() 682 s->strm->avail_out = cs_avail_out; in unRLE_obuf_to_output_FAST() 719 if (s->strm->avail_out == 0) return False; in unRLE_obuf_to_output_SMALL() 725 s->strm->avail_out--; in unRLE_obuf_to_output_SMALL() 768 if (s->strm->avail_out == 0) return False; in unRLE_obuf_to_output_SMALL() 774 s->strm->avail_out--; in unRLE_obuf_to_output_SMALL() [all …]
|
/freebsd/sys/contrib/zlib/test/ |
H A D | minigzip.c | 223 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 D | example.c | 182 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/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_zlib.c | 139 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/usr.sbin/fifolog/lib/ |
H A D | fifolog_reader.c | 213 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/mkuzip/ |
H A D | mkuz_lzma.c | 95 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.bin/gzip/ |
H A D | unbzip2.c | 85 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 D | unxz.c | 67 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 D | archive_write_set_format_7zip.c | 127 size_t avail_out; member 595 if (zip->stream.avail_out == 0) { in compress_out() 600 zip->stream.avail_out = sizeof(zip->wbuff); in compress_out() 611 uint64_t bytes = sizeof(zip->wbuff) - zip->stream.avail_out; in compress_out() 1685 if (lastrm->avail_out > lastrm->avail_in) in compression_code_copy() 1688 bytes = lastrm->avail_out; in compression_code_copy() 1695 lastrm->avail_out -= bytes; in compression_code_copy() 1736 strm->avail_out = (uInt)lastrm->avail_out; in compression_init_encoder_deflate() 1769 strm->avail_out = (uInt)lastrm->avail_out; in compression_code_deflate() 1777 lastrm->avail_out = strm->avail_out; in compression_code_deflate() [all …]
|
H A D | archive_write_add_filter_gzip.c | 207 data->stream.avail_out = (uInt)data->compressed_buffer_size; in archive_compressor_gzip_open() 230 data->stream.avail_out -= 10; in archive_compressor_gzip_open() 311 data->compressed_buffer_size - data->stream.avail_out); in archive_compressor_gzip_close() 351 if (data->stream.avail_out == 0) { in drive_compressor() 358 data->stream.avail_out = in drive_compressor()
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress_zlib.c | 154 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/libevent/test/ |
H A D | regress_zlib.c | 154 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()
|