DotNetCompression Class Reference for Windows Phone
ZlibOutputStream Constructor(Stream,Int32,Int32,Int32,Boolean,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.
If True then the use of managed pointers by the implementation of this compression method is disabled. Otherwise the use of managed pointers is automatically enabled when permitted by the current process.
Initializes a new instance of the ZlibOutputStream 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, _
   ByVal disableManagedPointers 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 disableManagedPointers As System.Boolean
 
Dim instance As New ZlibOutputStream(output, compressionLevel, windowBits, memoryLevel, leaveOpen, disableManagedPointers)
public ZlibOutputStream( 
   System.IO.Stream output,
   System.int compressionLevel,
   System.int windowBits,
   System.int memoryLevel,
   System.bool leaveOpen,
   System.bool disableManagedPointers
)
public ZlibOutputStream( 
    output: System.IO.Stream;
    compressionLevel: System.Integer;
    windowBits: System.Integer;
    memoryLevel: System.Integer;
    leaveOpen: System.Boolean;
    disableManagedPointers: System.Boolean
); 
public function ZlibOutputStream( 
   output : System.IO.Stream,
   compressionLevel : System.int,
   windowBits : System.int,
   memoryLevel : System.int,
   leaveOpen : System.boolean,
   disableManagedPointers : System.boolean
);
public: ZlibOutputStream( 
   System.IO.Stream* output,
   System.int compressionLevel,
   System.int windowBits,
   System.int memoryLevel,
   System.bool leaveOpen,
   System.bool disableManagedPointers
)
public:
ZlibOutputStream( 
   System.IO.Stream^ output,
   System.int compressionLevel,
   System.int windowBits,
   System.int memoryLevel,
   System.bool leaveOpen,
   System.bool disableManagedPointers
)

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.
disableManagedPointers
If True then the use of managed pointers by the implementation of this compression method is disabled. Otherwise the use of managed pointers is automatically enabled when permitted by the current process.
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

ZlibOutputStream Class
ZlibOutputStream Members
Overload List

Send Feedback