Lines Matching refs:stream

736       I've tried to closely emulate zlib's various flavors of stream flushing
1040 // Compression/decompression stream struct.
1078 // MZ_STREAM_ERROR if the stream is bogus.
1086 // window_bits must be MZ_DEFAULT_WINDOW_BITS (to wrap the deflate stream with
1100 // pStream is the stream to read from and write to. You must initialize/update
1109 // written. Don't call mz_deflate() on the stream anymore.
1110 // MZ_STREAM_ERROR if the stream is bogus.
1120 // MZ_STREAM_ERROR if the stream is bogus.
1144 // controls the window size and whether or not the stream has been wrapped with
1150 // Decompresses the input stream to the output, consuming only as much of the
1153 // pStream is the stream to read from and write to. You must initialize/update
1157 // buffers are both sized large enough to decompress the entire stream in a
1168 // MZ_STREAM_ERROR if the stream is bogus.
1169 // MZ_DATA_ERROR if the deflate stream is invalid.
1564 // ends with an adler32 checksum (it's a valid zlib stream). Otherwise, the
1565 // input is a raw deflate stream.
1570 // enough to hold the entire decompressed stream. If clear, the output buffer is
1777 // Output stream interface. The compressor uses this interface to write
1782 // tdefl_compress_mem_to_output() compresses a block to an output stream. The
2159 mz_stream stream;
2160 memset(&stream, 0, sizeof(stream));
2165 stream.next_in = pSource;
2166 stream.avail_in = (mz_uint32)source_len;
2167 stream.next_out = pDest;
2168 stream.avail_out = (mz_uint32)*pDest_len;
2170 status = mz_deflateInit(&stream, level);
2173 status = mz_deflate(&stream, MZ_FINISH);
2175 mz_deflateEnd(&stream);
2179 *pDest_len = stream.total_out;
2180 return mz_deflateEnd(&stream);
2366 mz_stream stream;
2368 memset(&stream, 0, sizeof(stream));
2373 stream.next_in = pSource;
2374 stream.avail_in = (mz_uint32)source_len;
2375 stream.next_out = pDest;
2376 stream.avail_out = (mz_uint32)*pDest_len;
2378 status = mz_inflateInit(&stream);
2381 status = mz_inflate(&stream, MZ_FINISH);
2383 mz_inflateEnd(&stream);
2384 return ((status == MZ_BUF_ERROR) && (!stream.avail_in)) ? MZ_DATA_ERROR
2387 *pDest_len = stream.total_out;
2389 return mz_inflateEnd(&stream);
2397 {MZ_STREAM_END, "stream end"},
2400 {MZ_STREAM_ERROR, "stream error"},
2444 // the stream with 0's in this scenario.
2494 // It reads just enough bytes from the input stream that are needed to decode
2522 // beyond the final byte of the deflate stream. (In other words, when this macro
9595 bitstream *stream = stream_open(&buf.at(0), buf_size);
9596 zfp_stream_set_bit_stream(zfp, stream);
9619 stream_close(stream);
9658 bitstream *stream = stream_open(&outBuf->at(0), buf_size);
9659 zfp_stream_set_bit_stream(zfp, stream);