Bewerken

Delen via


ZLibStream Constructors

Definition

Overloads

ZLibStream(Stream, CompressionLevel)

Initializes a new instance of the ZLibStream class by using the specified stream and compression level.

ZLibStream(Stream, CompressionMode)

Initializes a new instance of the ZLibStream class by using the specified stream and compression mode.

ZLibStream(Stream, CompressionLevel, Boolean)

Initializes a new instance of the ZLibStream class by using the specified stream, compression level, and whether to leave the stream open.

ZLibStream(Stream, CompressionMode, Boolean)

Initializes a new instance of the ZLibStream class by using the specified stream, compression mode, and whether to leave the stream open.

ZLibStream(Stream, ZLibCompressionOptions, Boolean)

Initializes a new instance of the ZLibStream class by using the specified stream and compression options, and optionally leaves the stream open.

ZLibStream(Stream, CompressionLevel)

Source:
ZLibStream.cs
Source:
ZLibStream.cs
Source:
ZLibStream.cs

Initializes a new instance of the ZLibStream class by using the specified stream and compression level.

public:
 ZLibStream(System::IO::Stream ^ stream, System::IO::Compression::CompressionLevel compressionLevel);
public ZLibStream (System.IO.Stream stream, System.IO.Compression.CompressionLevel compressionLevel);
new System.IO.Compression.ZLibStream : System.IO.Stream * System.IO.Compression.CompressionLevel -> System.IO.Compression.ZLibStream
Public Sub New (stream As Stream, compressionLevel As CompressionLevel)

Parameters

stream
Stream

The stream to which compressed data is written.

compressionLevel
CompressionLevel

One of the enumeration values that indicates whether to emphasize speed or compression efficiency when compressing data to the stream.

Applies to

ZLibStream(Stream, CompressionMode)

Source:
ZLibStream.cs
Source:
ZLibStream.cs
Source:
ZLibStream.cs

Initializes a new instance of the ZLibStream class by using the specified stream and compression mode.

public:
 ZLibStream(System::IO::Stream ^ stream, System::IO::Compression::CompressionMode mode);
public ZLibStream (System.IO.Stream stream, System.IO.Compression.CompressionMode mode);
new System.IO.Compression.ZLibStream : System.IO.Stream * System.IO.Compression.CompressionMode -> System.IO.Compression.ZLibStream
Public Sub New (stream As Stream, mode As CompressionMode)

Parameters

stream
Stream

The stream to which compressed data is written or from which data to decompress is read.

mode
CompressionMode

One of the enumeration values that indicates whether to compress data to the stream or decompress data from the stream.

Applies to

ZLibStream(Stream, CompressionLevel, Boolean)

Source:
ZLibStream.cs
Source:
ZLibStream.cs
Source:
ZLibStream.cs

Initializes a new instance of the ZLibStream class by using the specified stream, compression level, and whether to leave the stream open.

public:
 ZLibStream(System::IO::Stream ^ stream, System::IO::Compression::CompressionLevel compressionLevel, bool leaveOpen);
public ZLibStream (System.IO.Stream stream, System.IO.Compression.CompressionLevel compressionLevel, bool leaveOpen);
new System.IO.Compression.ZLibStream : System.IO.Stream * System.IO.Compression.CompressionLevel * bool -> System.IO.Compression.ZLibStream
Public Sub New (stream As Stream, compressionLevel As CompressionLevel, leaveOpen As Boolean)

Parameters

stream
Stream

The stream to which compressed data is written.

compressionLevel
CompressionLevel

One of the enumeration values that indicates whether to emphasize speed or compression efficiency when compressing data to the stream.

leaveOpen
Boolean

true to leave the stream object open after disposing the ZLibStream object; otherwise, false.

Applies to

ZLibStream(Stream, CompressionMode, Boolean)

Source:
ZLibStream.cs
Source:
ZLibStream.cs
Source:
ZLibStream.cs

Initializes a new instance of the ZLibStream class by using the specified stream, compression mode, and whether to leave the stream open.

public:
 ZLibStream(System::IO::Stream ^ stream, System::IO::Compression::CompressionMode mode, bool leaveOpen);
public ZLibStream (System.IO.Stream stream, System.IO.Compression.CompressionMode mode, bool leaveOpen);
new System.IO.Compression.ZLibStream : System.IO.Stream * System.IO.Compression.CompressionMode * bool -> System.IO.Compression.ZLibStream
Public Sub New (stream As Stream, mode As CompressionMode, leaveOpen As Boolean)

Parameters

stream
Stream

The stream to which compressed data is written or from which data to decompress is read.

mode
CompressionMode

One of the enumeration values that indicates whether to compress data to the stream or decompress data from the stream.

leaveOpen
Boolean

true to leave the stream object open after disposing the ZLibStream object; otherwise, false.

Applies to

ZLibStream(Stream, ZLibCompressionOptions, Boolean)

Initializes a new instance of the ZLibStream class by using the specified stream and compression options, and optionally leaves the stream open.

public ZLibStream (System.IO.Stream stream, System.IO.Compression.ZLibCompressionOptions compressionOptions, bool leaveOpen = false);
new System.IO.Compression.ZLibStream : System.IO.Stream * System.IO.Compression.ZLibCompressionOptions * bool -> System.IO.Compression.ZLibStream
Public Sub New (stream As Stream, compressionOptions As ZLibCompressionOptions, Optional leaveOpen As Boolean = false)

Parameters

stream
Stream

The stream to which compressed data is written.

compressionOptions
ZLibCompressionOptions

The ZLib options for fine tuning the compression stream.

leaveOpen
Boolean

true to leave the stream object open after disposing the ZLibStream object; otherwise, false.

Exceptions

stream or compressionOptions is null.

Applies to