35 const uInt max = (uInt)-1;
49 stream.
next_in = (z_const Bytef *)source;
51 stream.
zalloc = (alloc_func)0;
52 stream.
zfree = (free_func)0;
56 if (err !=
Z_OK)
return err;
63 stream.
avail_out = left > (uLong)max ? max : (uInt)left;
67 stream.
avail_in = len > (uLong)max ? max : (uInt)len;
71 }
while (err ==
Z_OK);
92 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)