[]
Initializes a new instance of the C1ZStreamWriter class.
public C1ZStreamWriter(Stream baseStream)
| Type | Name | Description |
|---|---|---|
| Stream | baseStream | Output stream that will contain the compressed data. |
Initializes a new instance of the C1ZStreamWriter class.
public C1ZStreamWriter(Stream baseStream, bool zip)
| 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. |
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.
Initializes a new instance of the C1ZStreamWriter class.
public C1ZStreamWriter(Stream baseStream, bool header, bool crc32)
| 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). |
Initializes a new instance of the C1ZStreamWriter class.
public C1ZStreamWriter(Stream baseStream, CompressionLevelEnum level)
| Type | Name | Description |
|---|---|---|
| Stream | baseStream | Output stream that will contain the compressed data. |
| CompressionLevelEnum | level | Compression level to use when compressing data. |
Initializes a new instance of the C1ZStreamWriter class.
public C1ZStreamWriter(Stream baseStream, CompressionLevelEnum level, bool zip)
| 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. |
Initializes a new instance of the C1ZStreamWriter class.
public C1ZStreamWriter(Stream baseStream, CompressionLevelEnum level, bool header, bool crc32)
| 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). |