34 const uInt max = (uInt)-1;
48 stream.
next_in = (z_const Bytef *)source;
50 stream.
zalloc = (alloc_func)0;
51 stream.
zfree = (free_func)0;
55 if (err !=
Z_OK)
return err;
62 stream.
avail_out = left > (uLong)max ? max : (uInt)left;
66 stream.
avail_in = len > (uLong)max ? max : (uInt)len;
70 }
while (err ==
Z_OK);
91 return uncompress2(dest, destLen, source, &sourceLen);
int ZEXPORT inflate(z_streamp strm, int flush)
int ZEXPORT inflateEnd(z_streamp strm)
int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong *sourceLen)
#define inflateInit(strm)