[]
        
(Showing Draft Content)

C1.Zip.C1ZStreamWriter.-ctor

C1ZStreamWriter Constructor

C1ZStreamWriter(Stream)

Initializes a new instance of the C1ZStreamWriter class.

Declaration
public C1ZStreamWriter(Stream baseStream)
Parameters
Type Name Description
Stream baseStream

Output stream that will contain the compressed data.

C1ZStreamWriter(Stream, bool)

Initializes a new instance of the C1ZStreamWriter class.

Declaration
public C1ZStreamWriter(Stream baseStream, bool zip)
Parameters
Type Name Description
Stream baseStream

Output stream that will contain the compressed data.

bool zip

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.

C1ZStreamWriter(Stream, bool, bool)

Initializes a new instance of the C1ZStreamWriter class.

Declaration
public C1ZStreamWriter(Stream baseStream, bool header, bool crc32)
Parameters
Type Name Description
Stream baseStream

Output stream that will contain the compressed data.

bool header

Include header information in compressed stream (should be False for streams in zip files).

bool crc32

Include CRC32 checksum in compressed stream (should be True for streams in zip files).

C1ZStreamWriter(Stream, CompressionLevelEnum)

Initializes a new instance of the C1ZStreamWriter class.

Declaration
public C1ZStreamWriter(Stream baseStream, CompressionLevelEnum level)
Parameters
Type Name Description
Stream baseStream

Output stream that will contain the compressed data.

CompressionLevelEnum level

Compression level to use when compressing data.

C1ZStreamWriter(Stream, CompressionLevelEnum, bool)

Initializes a new instance of the C1ZStreamWriter class.

Declaration
public C1ZStreamWriter(Stream baseStream, CompressionLevelEnum level, bool zip)
Parameters
Type Name Description
Stream baseStream

Output stream that will contain the compressed data.

CompressionLevelEnum level

Compression level to use when compressing data.

bool zip

Specifies whether the compressed stream should be compatible with zip files.

C1ZStreamWriter(Stream, CompressionLevelEnum, bool, bool)

Initializes a new instance of the C1ZStreamWriter class.

Declaration
public C1ZStreamWriter(Stream baseStream, CompressionLevelEnum level, bool header, bool crc32)
Parameters
Type Name Description
Stream baseStream

Output stream that will contain the compressed data.

CompressionLevelEnum level

Compression level to use when compressing data.

bool header

Include header information in compressed stream (should be False for streams in zip files).

bool crc32

Include CRC32 checksum in compressed stream (should be True for streams in zip files).