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.
Public Overloads Overridable Function Decompress( _
   ByVal input As System.IO.Stream, _
   ByVal maxDecompressedSize As System.Integer _
) As System.Byte()
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, 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.byte[];
public: virtual System.byte[]* Decompress( 
   System.IO.Stream* input, maxDecompressedSize
virtual System.array<byte>^ Decompress( 
   System.IO.Stream^ input, maxDecompressedSize


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

Return Value

The array of decompressed bytes.

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.


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


CompressionFactory Class
CompressionFactory Members
Overload List

Send Feedback