[]
        
(Showing Draft Content)

C1.Zip.C1ZStreamReader.-ctor

C1ZStreamReader Constructor

C1ZStreamReader(Stream)

Initializes a new instance of the C1ZStreamReader class.

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

Input stream that contains the compressed data.

C1ZStreamReader(Stream, bool, int)

Initializes a new instance of the C1ZStreamReader class.

Declaration
public C1ZStreamReader(Stream baseStream, bool zip, int sizeCompressed)
Parameters
Type Name Description
Stream baseStream

Input stream that contains the compressed data.

bool zip

Specifies whether the compressed stream was created in zip format.

int sizeCompressed

Specifies the number of compressed bytes to read from the stream.

Remarks

The sizeCompressed parameter is needed only when a single stream contains several compressed streams (in zip files for example). If this parameter is not specified, it is assumed that the stream contains a single stream of compressed data.

C1ZStreamReader(Stream, bool)

Initializes a new instance of the C1ZStreamReader class.

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

Input stream that contains the compressed data.

bool zip

Specifies whether the compressed stream was created in zip format.

C1ZStreamReader(Stream, bool, bool)

Initializes a new instance of the C1ZStreamReader class.

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

Input stream that contains the compressed data.

bool header

Specifies whether the compressed stream contains header information (should be False for streams in zip files).

bool crc32

Specifies whether the compressed stream contains a CRC32 checksum (should be True for streams in zip files).

C1ZStreamReader(Stream, bool, int, int)

Initializes a new instance of the C1ZStreamReader class.

Declaration
public C1ZStreamReader(Stream baseStream, bool zip, int sizeCompressed, int method)
Parameters
Type Name Description
Stream baseStream

Input stream that contains the compressed data.

bool zip

Specifies whether the compressed stream was created in zip format.

int sizeCompressed

Specifies the number of compressed bytes to read from the stream.

int method

Specifies the method that was used to compress the stream.

C1ZStreamReader(Stream, bool, long, int)

Initializes a new instance of the C1ZStreamReader class.

Declaration
public C1ZStreamReader(Stream baseStream, bool zip, long sizeCompressed, int method)
Parameters
Type Name Description
Stream baseStream

Input stream that contains the compressed data.

bool zip

Specifies whether the compressed stream was created in zip format.

long sizeCompressed

Specifies the number of compressed bytes to read from the stream.

int method

Specifies the method that was used to compress the stream.