Lines Matching defs:stream
26 z_stream stream;
34 stream.zalloc = (alloc_func)0;
35 stream.zfree = (free_func)0;
36 stream.opaque = (voidpf)0;
38 err = deflateInit(&stream, level);
41 stream.next_out = dest;
42 stream.avail_out = 0;
43 stream.next_in = __UNCONST(source);
44 stream.avail_in = 0;
47 if (stream.avail_out == 0) {
48 stream.avail_out = left > (uLong)max ? max : (uInt)left;
49 left -= stream.avail_out;
51 if (stream.avail_in == 0) {
52 stream.avail_in = sourceLen > (uLong)max ? max : (uInt)sourceLen;
53 sourceLen -= stream.avail_in;
55 err = deflate(&stream, sourceLen ? Z_NO_FLUSH : Z_FINISH);
58 *destLen = stream.total_out;
59 deflateEnd(&stream);