Lines Matching defs:stream
15 * only have one stream, and we'll initialize it only once even if it
27 static z_stream stream;
35 stream.next_in = src;
36 stream.avail_in = srclen;
38 stream.next_out = dst;
39 stream.avail_out = dstlen;
41 err = zlib_inflateReset(&stream);
44 zlib_inflateEnd(&stream);
45 zlib_inflateInit(&stream);
48 err = zlib_inflate(&stream, Z_FINISH);
51 return stream.total_out;
62 stream.workspace = vmalloc(zlib_inflate_workspacesize());
63 if (!stream.workspace) {
67 stream.next_in = NULL;
68 stream.avail_in = 0;
69 zlib_inflateInit(&stream);
77 zlib_inflateEnd(&stream);
78 vfree(stream.workspace);