[]
        
(Showing Draft Content)

C1.Zip.C1ZStreamWriter.-ctor

C1ZStreamWriter Constructor

C1ZStreamWriter(Stream)

Initializes a new instance of the C1ZStreamWriter class.

Declaration
public C1ZStreamWriter(Stream baseStream)
Public Sub New(baseStream As Stream)
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)
Public Sub New(baseStream As Stream, zip As Boolean)
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)
Public Sub New(baseStream As Stream, header As Boolean, crc32 As Boolean)
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)
Public Sub New(baseStream As Stream, level As CompressionLevelEnum)
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)
Public Sub New(baseStream As Stream, level As CompressionLevelEnum, zip As Boolean)
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)
Public Sub New(baseStream As Stream, level As CompressionLevelEnum, header As Boolean, crc32 As Boolean)
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).