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


Xceed.Compression Assembly > Xceed.Compression Namespace > ManagedPPMdDecompressor Class > Decompress Method : Decompress(Byte[],Int32,Int32,Boolean,Byte[],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.
true if the end of the compressed data has been reached; false otherwise.
An array of bytes containing the decompressed data. Can be empty if no bytes were decompressed.
The number of unused bytes read from buffer the for decompression.
Decompresses an array of bytes.
Syntax
'Declaration
 
Public Overloads Overrides Function Decompress( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer, _
   ByRef endOfData As Boolean, _
   ByRef decompressed() As Byte, _
   ByRef remaining As Integer _
) As Integer
'Usage
 
Dim instance As ManagedPPMdDecompressor
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
Dim endOfData As Boolean
Dim decompressed() As Byte
Dim remaining As Integer
Dim value As Integer
 
value = instance.Decompress(buffer, offset, count, endOfData, decompressed, remaining)
public override int Decompress( 
   byte[] buffer,
   int offset,
   int count,
   ref bool endOfData,
   out byte[] decompressed,
   out int remaining
)

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.
endOfData
true if the end of the compressed data has been reached; false otherwise.
decompressed
An array of bytes containing the decompressed data. Can be empty if no bytes were decompressed.
remaining
The number of unused bytes read from buffer the for decompression.

Return Value

A value representing the length of the decompressed stream.
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

ManagedPPMdDecompressor Class
ManagedPPMdDecompressor Members
Overload List
Base Implementation in Decompress