Lines Matching refs:_stream

702   z_stream _stream;  in Zlib_Compress()  local
703 memset(&_stream, 0, sizeof(z_stream)); in Zlib_Compress()
704 int st = deflateInit2(&_stream, level, Z_DEFLATED, info.options().window_bits, in Zlib_Compress()
714 &_stream, reinterpret_cast<const Bytef*>(compression_dict.data()), in Zlib_Compress()
717 deflateEnd(&_stream); in Zlib_Compress()
723 _stream.next_in = (Bytef*)input; in Zlib_Compress()
724 _stream.avail_in = static_cast<unsigned int>(length); in Zlib_Compress()
727 _stream.avail_out = static_cast<unsigned int>(length); in Zlib_Compress()
728 _stream.next_out = reinterpret_cast<Bytef*>(&(*output)[output_header_len]); in Zlib_Compress()
731 st = deflate(&_stream, Z_FINISH); in Zlib_Compress()
734 output->resize(output->size() - _stream.avail_out); in Zlib_Compress()
740 deflateEnd(&_stream); in Zlib_Compress()
778 z_stream _stream; variable
779 memset(&_stream, 0, sizeof(z_stream));
785 inflateInit2(&_stream, windowBits > 0 ? windowBits + 32 : windowBits);
794 &_stream, reinterpret_cast<const Bytef*>(compression_dict.data()),
801 _stream.next_in = (Bytef*)input_data;
802 _stream.avail_in = static_cast<unsigned int>(input_length);
806 _stream.next_out = (Bytef*)output.get();
807 _stream.avail_out = static_cast<unsigned int>(output_len);
811 st = inflate(&_stream, Z_SYNC_FLUSH);
829 _stream.next_out = (Bytef*)(output.get() + old_sz);
830 _stream.avail_out = static_cast<unsigned int>(output_len - old_sz);
835 inflateEnd(&_stream);
841 assert(compress_format_version != 2 || _stream.avail_out == 0);
842 *decompress_size = static_cast<int>(output_len - _stream.avail_out);
843 inflateEnd(&_stream);
878 bz_stream _stream; in BZip2_Compress() local
879 memset(&_stream, 0, sizeof(bz_stream)); in BZip2_Compress()
884 int st = BZ2_bzCompressInit(&_stream, 1, 0, 30); in BZip2_Compress()
890 _stream.next_in = (char*)input; in BZip2_Compress()
891 _stream.avail_in = static_cast<unsigned int>(length); in BZip2_Compress()
894 _stream.avail_out = static_cast<unsigned int>(length); in BZip2_Compress()
895 _stream.next_out = reinterpret_cast<char*>(&(*output)[output_header_len]); in BZip2_Compress()
898 st = BZ2_bzCompress(&_stream, BZ_FINISH); in BZip2_Compress()
901 output->resize(output->size() - _stream.avail_out); in BZip2_Compress()
907 BZ2_bzCompressEnd(&_stream); in BZip2_Compress()
941 bz_stream _stream; variable
942 memset(&_stream, 0, sizeof(bz_stream));
944 int st = BZ2_bzDecompressInit(&_stream, 0, 0);
949 _stream.next_in = (char*)input_data;
950 _stream.avail_in = static_cast<unsigned int>(input_length);
954 _stream.next_out = (char*)output.get();
955 _stream.avail_out = static_cast<unsigned int>(output_len);
959 st = BZ2_bzDecompress(&_stream);
976 _stream.next_out = (char*)(output.get() + old_sz);
977 _stream.avail_out = static_cast<unsigned int>(output_len - old_sz);
981 BZ2_bzDecompressEnd(&_stream);
987 assert(compress_format_version != 2 || _stream.avail_out == 0);
988 *decompress_size = static_cast<int>(output_len - _stream.avail_out);
989 BZ2_bzDecompressEnd(&_stream);