Lines Matching refs:stream
63 z_stream stream;
66 stream.next_in = (Bytef*)source;
67 stream.avail_in = (uInt)sourceLen;
69 if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;
71 stream.next_out = dest;
72 stream.avail_out = (uInt)*destLen;
73 if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR;
75 stream.zalloc = (alloc_func)0;
76 stream.zfree = (free_func)0;
78 err = inflateInit(&stream);
81 err = inflate(&stream, Z_FINISH);
83 inflateEnd(&stream);
84 if (err == Z_NEED_DICT || (err == Z_BUF_ERROR && stream.avail_in == 0))
88 *destLen = stream.total_out;
90 err = inflateEnd(&stream);