Home | History | Annotate | Download | only in zlib

Lines Matching defs:stream

29     z_stream stream;
37 stream.zalloc = (alloc_func)0;
38 stream.zfree = (free_func)0;
39 stream.opaque = (voidpf)0;
41 err = deflateInit(&stream, level);
44 stream.next_out = dest;
45 stream.avail_out = 0;
46 stream.next_in = (z_const Bytef *)source;
47 stream.avail_in = 0;
50 if (stream.avail_out == 0) {
51 stream.avail_out = left > (uLong)max ? max : (uInt)left;
52 left -= stream.avail_out;
54 if (stream.avail_in == 0) {
55 stream.avail_in = sourceLen > (uLong)max ? max : (uInt)sourceLen;
56 sourceLen -= stream.avail_in;
58 err = deflate(&stream, sourceLen ? Z_NO_FLUSH : Z_FINISH);
61 *destLen = stream.total_out;
62 deflateEnd(&stream);