DotNetCompression Class Reference for Windows Phone
Decompress(Stream,Int32) Method






The stream to read compressed bytes.
The maximum number of bytes to decompress.
Reads compressed bytes from the specified stream and returns an array of decompressed bytes.
Syntax
'Declaration
 
Public Overloads Overridable Function Decompress( _
   ByVal input As System.IO.Stream, _
   ByVal maxDecompressedSize As System.Integer _
) As System.Byte()
'Usage
 
Dim instance As CompressionFactory
Dim input As System.IO.Stream
Dim maxDecompressedSize As System.Integer
Dim value() As System.Byte
 
value = instance.Decompress(input, maxDecompressedSize)
public virtual System.byte[] Decompress( 
   System.IO.Stream input,
   System.int maxDecompressedSize
)
public function Decompress( 
    input: System.IO.Stream;
    maxDecompressedSize: System.Integer
): System.array of Byte; virtual; 
public function Decompress( 
   input : System.IO.Stream,
   maxDecompressedSize : System.int
) : System.byte[];
public: virtual System.byte[]* Decompress( 
   System.IO.Stream* input,
   System.int maxDecompressedSize
) 
public:
virtual System.array<byte>^ Decompress( 
   System.IO.Stream^ input,
   System.int maxDecompressedSize
) 

Parameters

input
The stream to read compressed bytes.
maxDecompressedSize
The maximum number of bytes to decompress.

Return Value

The array of decompressed bytes.
Remarks

This method will not return more bytes than specified by the maxDecompressedSize parameter. If the length of the array of bytes returned by the method is equal to maxDecompressedSize, you can attempt to call this method again to retrieve more decompress bytes.

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

CompressionFactory Class
CompressionFactory Members
Overload List

Send Feedback