Lines Matching defs:stream
22 z_stream stream;
30 stream.zalloc = (alloc_func)0;
31 stream.zfree = (free_func)0;
32 stream.opaque = (voidpf)0;
34 err = deflateInit(&stream, level);
37 stream.next_out = dest;
38 stream.avail_out = 0;
39 stream.next_in = (z_const Bytef *)source;
40 stream.avail_in = 0;
43 if (stream.avail_out == 0) {
44 stream.avail_out = left > (uLong)max ? max : (uInt)left;
45 left -= stream.avail_out;
47 if (stream.avail_in == 0) {
48 stream.avail_in = sourceLen > (uLong)max ? max : (uInt)sourceLen;
49 sourceLen -= stream.avail_in;
51 err = deflate(&stream, sourceLen ? Z_NO_FLUSH : Z_FINISH);
54 *destLen = stream.total_out;
55 deflateEnd(&stream);