CryptoSys API Library Manual

ZLIB_Inflate

ZLIB_Inflate inflates compressed data using the ZLIB uncompress algorithm.

VB6/VBA Syntax

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)

Parameters

abOutput
[out] Byte array to be filled with uncompressed data
nOutputLen
[in] Long specifying the size of the output buffer in bytes.
abInput
[in] Byte array containing compressed input data.
nInputLen
[in] Long specifying the number of bytes in the input buffer.

C/C++ Syntax

long _stdcall ZLIB_Inflate(unsigned char *output, long out_len, const unsigned char *input, long in_len);

Returns (VB6/C)

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.

.NET Equivalent

Zlib.Inflate Method

Remarks

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).

Example

See ZLIB_Deflate.

See Also

ZLIB_Deflate

[Contents] [Index]

[HOME]   [NEXT: ActiveX Classes and Methods...]

Copyright © 2001-9 D.I. Management Services Pty Ltd. All rights reserved.