Lines Matching refs:stream
60 z_stream stream;
63 stream.next_in = (Bytef*)source;
64 stream.avail_in = (uInt)sourceLen;
67 if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;
69 stream.next_out = dest;
70 stream.avail_out = (uInt)*destLen;
71 if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
73 stream.zalloc = (alloc_func)0;
74 stream.zfree = (free_func)0;
75 stream.opaque = (voidpf)0;
77 err = deflateInit(&stream, level);
80 err = deflate(&stream, Z_FINISH);
82 deflateEnd(&stream);
85 *destLen = stream.total_out;
87 err = deflateEnd(&stream);