Initializes a new instance of the C1ZStreamWriter class.

Namespace:  C1.C1Zip
Assembly:  C1.Silverlight.Zip (in C1.Silverlight.Zip.dll)

Syntax

C#
public C1ZStreamWriter(
	Stream baseStream,
	bool zip
)
Visual Basic
Public Sub New ( _
	baseStream As Stream, _
	zip As Boolean _
)

Parameters

baseStream
Type: System.IO..::..Stream
Output stream that will contain the compressed data.
zip
Type: System..::..Boolean
Specifies whether the compressed stream should be compatible with zip files.

Remarks

Streams in zip files are different from regular zlib streams in two aspects:

(1) zip streams do not contain any local header information (the information is stored in the zip file headers instead) and

(2) zip streams use a CRC32 checksum instead of the adler32 checksum used by zlib streams.

See Also