Lines Matching defs:stream
32 z_stream stream;
35 stream.next_in = (Bytef*)source;
36 stream.avail_in = (uInt)sourceLen;
38 if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;
40 stream.next_out = dest;
41 stream.avail_out = (uInt)*destLen;
42 if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
44 stream.zalloc = (alloc_func)0;
45 stream.zfree = (free_func)0;
47 err = inflateInit(&stream);
50 err = inflate(&stream, Z_FINISH);
52 inflateEnd(&stream);
53 if (err == Z_NEED_DICT || (err == Z_BUF_ERROR && stream.avail_in == 0))
57 *destLen = stream.total_out;
59 err = inflateEnd(&stream);