Xceed .NET Libraries Documentation
Decompress(Byte[],Int32,Int32) Method


Xceed.Compression.Formats Assembly > Xceed.Compression.Formats Namespace > ZLibCompressedStream Class > Decompress Method : Decompress(Byte[],Int32,Int32) Method
An array of bytes to decompress. A maximum of count bytes are taken from this array and decompressed.
The byte offset in buffer at which to begin taking the data to decompress.
The maximum number of bytes to be taken from buffer.
Decompresses an array of ZLib formatted compressed bytes specifying the amount of bytes to decompress.
Syntax
'Declaration
 
Public Overloads Shared Function Decompress( _

   ByVal buffer() As Byte, _

   ByVal offset As Integer, _

   ByVal count As Integer _

) As Byte()
'Usage
 
Dim buffer() As Byte

Dim offset As Integer

Dim count As Integer

Dim value() As Byte

 

value = ZLibCompressedStream.Decompress(buffer, offset, count)
public static byte[] Decompress( 

   byte[] buffer,

   int offset,

   int count

)

Parameters

buffer
An array of bytes to decompress. A maximum of count bytes are taken from this array and decompressed.
offset
The byte offset in buffer at which to begin taking the data to decompress.
count
The maximum number of bytes to be taken from buffer.

Return Value

An array of bytes containing the decompressed data. Can be empty.
Remarks

If the original data contained within the decompressed byte array was a string, then it is possible to retrieve the string using the System.Text.Encoding.GetString(System.Byte[]) method of the System.Text.Encoding class.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ZLibCompressedStream Class
ZLibCompressedStream Members
Overload List