CryptoSys API Library Manual

COMPR_Uncompress

Uncompress data using compression algorithm.

VBA/VB6 Syntax

Public Declare Function COMPR_Uncompress Lib "diCryptoSys.dll" (ByRef lpOutput As Byte, ByVal nOutBytes As Long, ByRef lpInput As Byte, ByVal nInputLen As Long, ByVal nOptions As Long) As Long

nRet = COMPR_Uncompress(lpOutput(0), nOutputLen, lpInput(0), nInputLen, nOptions)

C/C++ Syntax

long __stdcall COMPR_Uncompress(unsigned char *lpOutput, long nOutBytes, const unsigned char *lpInput, long nInputLen, long nOptions);

Parameters

lpOutput
[out] byte buffer to receive output data.
nOutBytes
[in] size of the output buffer in bytes.
lpInput
[in] input data to be uncompressed.
nInputLen
[in] length of input array in bytes.
nOptions
[in] option flags. Select one of:
API_COMPR_ZLIB (0) to use the zlib algorithm (default)
API_COMPR_ZSTD to use the Zstandard algorithm

Returns (VBA/C)

The number of bytes successfully copied into the output buffer or the required size in bytes. If an error occurs, it returns a negative error code.

VBA Wrapper Syntax

Public Function comprUncompress(lpInput() As Byte, Optional nOptions As Long = 0) As Byte()

.NET Equivalent

Compr.Uncompress Method

Python Equivalent

static Compr.uncompress(data, alg=Alg.ZLIB)

Remarks

To determine the required size of the output buffer, call the function with nOutBytes set to zero (or lpOutput set to NULL).

VB6/VBA users: Note the '(0)' in lpOutput(0) and abInput(0).

Example (VBA core function)

See COMPR_Compress.

Example (VBA wrapper function)

See COMPR_Compress.

See Also

COMPR_Compress

[Contents] [Index]

[PREV: COMPR_Compress...]   [Contents]   [Index]   
   [NEXT: CRC_Bytes...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.