ZLIB_Inflate inflates compressed data using the ZLIB uncompress algorithm.
Public Declare Function ZLIB_Inflate Lib "diCryptoSys.dll"
(ByRef abOutput As Byte, ByVal nOutputLen As Long,
ByRef abInput As Byte, ByVal nInputLen As Long) As Long
nRet = ZLIB_Inflate(abOutput(0), nOutputLen, abInput(0), nInputLen)
Byte array to be filled with
uncompressed dataLong specifying the size of the output buffer
in bytes.Byte array containing compressed input data.Long specifying the number of bytes
in the input buffer.
long _stdcall ZLIB_Inflate(unsigned char *output, long out_len, const unsigned char *input, long in_len);
Long: the number of bytes successfully copied into the
output buffer. If an error occurs,
it returns the negative value of a non-zero error code.
Unlike ZLIB_Deflate, this function does not return the required
size of the output buffer. It is the responsibility of the caller to know
the size of the uncompressed data by separate
means.
Note the (0) in abOutput(0) and abInput(0).
See ZLIB_Deflate.