This documentation is for the old version. Go to the latest Graphics Mill docs

ZipCompressor.Decompress Method (IntPtr, UInt32, IntPtr, UInt32)

Decompresses given array which contains data compressed with the deflate algorithm (ZIP).

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Shared Function Decompress ( _
	compressedData As IntPtr, _
	compressedDataSize As UInteger, _
	decompressedData As IntPtr, _
	decompressedDataSize As UInteger _
) As UInteger
C#
public static uint Decompress(
	IntPtr compressedData,
	uint compressedDataSize,
	IntPtr decompressedData,
	uint decompressedDataSize
)

Parameters

compressedData

Type: System.IntPtr

The pointer to unmanaged byte array which stores the ZIP-compressed data.
compressedDataSize

Type: System.UInt32

The integer value which specifies the length of the input buffer.
decompressedData

Type: System.IntPtr

The pointer to the unmanaged byte array which will get the decompressed data. The memory should be allocated by caller.
decompressedDataSize

Type: System.UInt32

The integer value which specifies the lenght of the output buffer.

Return Value

The integer value which specifies how many bytes were actually allocated during decompression.

Remarks

You should guaranty that the length of the output buffer enough to hold the result of decompression.

See Also

Reference