DotNetCompression Class Reference for Windows Phone
DeflateOutputStream Constructor(Stream,Int32,Int32,Int32,Boolean)






The underlying stream to which to write the compressed bytes.
Specifies the compression level to be used when compressing. It may be set to an integer from 0 to 9. Generally, lower compression levels result in faster performance while higher compression levels result in better compression. Compression level 0 provides no compression at all.
Specifies the window size to be used when compressing. It may be set to an integer from 8 to 15. Generally, lower values result in lower memory usage while higher values result in better compression. The windowBits used when decompressing must be the same as or higher than the windowBits used when compressing.
Specifies the memory level to be used when compressing. It may be set to an integer from 1 to 8. Generally, lower memory levels result in lower memory usage while higher memory levels result in better compression and faster performance.
If True then the underlying stream is left open when this stream is closed, otherwise the underlying stream is closed when this stream is closed.
Initializes a new instance of the DeflateOutputStream class.
Syntax
'Declaration
 
Public Function New( _
   ByVal output As System.IO.Stream, _
   ByVal compressionLevel As System.Integer, _
   ByVal windowBits As System.Integer, _
   ByVal memoryLevel As System.Integer, _
   ByVal leaveOpen As System.Boolean _
)
'Usage
 
Dim output As System.IO.Stream
Dim compressionLevel As System.Integer
Dim windowBits As System.Integer
Dim memoryLevel As System.Integer
Dim leaveOpen As System.Boolean
 
Dim instance As New DeflateOutputStream(output, compressionLevel, windowBits, memoryLevel, leaveOpen)
public DeflateOutputStream( 
   System.IO.Stream output,
   System.int compressionLevel,
   System.int windowBits,
   System.int memoryLevel,
   System.bool leaveOpen
)
public DeflateOutputStream( 
    output: System.IO.Stream;
    compressionLevel: System.Integer;
    windowBits: System.Integer;
    memoryLevel: System.Integer;
    leaveOpen: System.Boolean
); 
public function DeflateOutputStream( 
   output : System.IO.Stream,
   compressionLevel : System.int,
   windowBits : System.int,
   memoryLevel : System.int,
   leaveOpen : System.boolean
);
public: DeflateOutputStream( 
   System.IO.Stream* output,
   System.int compressionLevel,
   System.int windowBits,
   System.int memoryLevel,
   System.bool leaveOpen
)
public:
DeflateOutputStream( 
   System.IO.Stream^ output,
   System.int compressionLevel,
   System.int windowBits,
   System.int memoryLevel,
   System.bool leaveOpen
)

Parameters

output
The underlying stream to which to write the compressed bytes.
compressionLevel
Specifies the compression level to be used when compressing. It may be set to an integer from 0 to 9. Generally, lower compression levels result in faster performance while higher compression levels result in better compression. Compression level 0 provides no compression at all.
windowBits
Specifies the window size to be used when compressing. It may be set to an integer from 8 to 15. Generally, lower values result in lower memory usage while higher values result in better compression. The windowBits used when decompressing must be the same as or higher than the windowBits used when compressing.
memoryLevel
Specifies the memory level to be used when compressing. It may be set to an integer from 1 to 8. Generally, lower memory levels result in lower memory usage while higher memory levels result in better compression and faster performance.
leaveOpen
If True then the underlying stream is left open when this stream is closed, otherwise the underlying stream is closed when this stream is closed.
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

DeflateOutputStream Class
DeflateOutputStream Members
Overload List

Send Feedback