Lines Matching defs:stream
27 z_stream stream;
30 stream.next_in = (Bytef*)source;
31 stream.avail_in = (uInt)sourceLen;
34 if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;
36 stream.next_out = dest;
37 stream.avail_out = (uInt)*destLen;
38 if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
40 stream.zalloc = (alloc_func)0;
41 stream.zfree = (free_func)0;
42 stream.opaque = (voidpf)0;
44 err = deflateInit(&stream, level);
47 err = deflate(&stream, Z_FINISH);
49 deflateEnd(&stream);
52 *destLen = stream.total_out;
54 err = deflateEnd(&stream);