27int ZEXPORT
uncompress2(Bytef *dest, uLongf *destLen,
const Bytef *source,
31 const uInt max = (uInt)-1;
45 stream.
next_in = (z_const Bytef *)source;
52 if (err !=
Z_OK)
return err;
59 stream.
avail_out = left > (uLong)max ? max : (uInt)left;
63 stream.
avail_in = len > (uLong)max ? max : (uInt)len;
67 }
while (err ==
Z_OK);
82int ZEXPORT
uncompress(Bytef *dest, uLongf *destLen,
const Bytef *source,
84 return uncompress2(dest, destLen, source, &sourceLen);
int ZEXPORT uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
int ZEXPORT uncompress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong *sourceLen)
void(* free_func)(voidpf opaque, voidpf address)
voidpf(* alloc_func)(voidpf opaque, uInt items, uInt size)
ZEXTERN int ZEXPORT inflate(z_streamp strm, int flush)
ZEXTERN int ZEXPORT inflateEnd(z_streamp strm)
struct z_stream_s z_stream
#define inflateInit(strm)