Lines Matching refs:max_bytes
369 int compress_stream_xz(int fdf, int fdt, uint64_t max_bytes) {
390 if (max_bytes != (uint64_t) -1 && (uint64_t) m > max_bytes)
391 m = (size_t) max_bytes;
402 if (max_bytes != (uint64_t) -1) {
403 assert(max_bytes >= (uint64_t) n);
404 max_bytes -= n;
445 int compress_stream_lz4(int fdf, int fdt, uint64_t max_bytes) {
500 if (max_bytes != (uint64_t) -1 && total_out > (size_t) max_bytes) {
501 log_debug("Compressed stream longer than %zd bytes", max_bytes);
538 int decompress_stream_xz(int fdf, int fdt, uint64_t max_bytes) {
587 if (max_bytes != (uint64_t) -1) {
588 if (max_bytes < (uint64_t) n)
591 max_bytes -= n;
613 int decompress_stream_lz4(int in, int out, uint64_t max_bytes) {
651 if (max_bytes != (uint64_t) -1 && total_out > (size_t) max_bytes) {
652 log_debug("Decompressed stream longer than %zd bytes", max_bytes);
674 int decompress_stream(const char *filename, int fdf, int fdt, uint64_t max_bytes) {
677 return decompress_stream_lz4(fdf, fdt, max_bytes);
679 return decompress_stream_xz(fdf, fdt, max_bytes);