Lines Matching refs:stream
24 z_stream stream; in compress2() local
32 stream.zalloc = (alloc_func)0; in compress2()
33 stream.zfree = (free_func)0; in compress2()
34 stream.opaque = (voidpf)0; in compress2()
36 err = deflateInit(&stream, level); in compress2()
39 stream.next_out = dest; in compress2()
40 stream.avail_out = 0; in compress2()
41 stream.next_in = (z_const Bytef *)source; in compress2()
42 stream.avail_in = 0; in compress2()
45 if (stream.avail_out == 0) { in compress2()
46 stream.avail_out = left > (uLong)max ? max : (uInt)left; in compress2()
47 left -= stream.avail_out; in compress2()
49 if (stream.avail_in == 0) { in compress2()
50 stream.avail_in = sourceLen > (uLong)max ? max : (uInt)sourceLen; in compress2()
51 sourceLen -= stream.avail_in; in compress2()
53 err = deflate(&stream, sourceLen ? Z_NO_FLUSH : Z_FINISH); in compress2()
56 *destLen = stream.total_out; in compress2()
57 deflateEnd(&stream); in compress2()