---
title: "ZipCompressor..::.Decompress Method (IntPtr, UInt32, IntPtr, UInt32)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ZipCompressor_Decompress_4_f6130501.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# ZipCompressor.Decompress Method (IntPtr, UInt32, IntPtr, UInt32)
 
Decompresses given array which contains data compressed with the deflate algorithm (ZIP).
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Shared Function Decompress ( _compressedData As IntPtr, _compressedDataSize As UInteger, _decompressedData As IntPtr, _decompressedDataSize As UInteger _
) As UInteger
```
 
```csharp
public static uint Decompress(IntPtr compressedData,uint compressedDataSize,IntPtr decompressedData,uint decompressedDataSize
)
```
 
### Parameters
 
 - compressedData
     - Type: [System.IntPtr](http://msdn2.microsoft.com/en-us/5he14kz8)
The pointer to unmanaged byte array which stores the ZIP-compressed data.

 - compressedDataSize
     - Type: [System.UInt32](http://msdn2.microsoft.com/en-us/ctys3981)
The integer value which specifies the length of the input buffer.

 - decompressedData
     - Type: [System.IntPtr](http://msdn2.microsoft.com/en-us/5he14kz8)
The pointer to the unmanaged byte array which will get the decompressed data. The memory should be allocated by caller.

 - decompressedDataSize
     - Type: [System.UInt32](http://msdn2.microsoft.com/en-us/ctys3981)
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

- [ZipCompressor Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ZipCompressor.htm.md)
- [Decompress Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ZipCompressor_Decompress.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
