CrcCalculatorStream Constructor (stream, length, leaveOpen, crc32)

DotNetZip

Ionic Zip Library v1.9.1.6 CrcCalculatorStream Constructor (stream, length, leaveOpen, crc32)
ReferenceIonic.CrcCrcCalculatorStreamCrcCalculatorStream(Stream, Int64, Boolean, CRC32)
A constructor allowing the specification of the length of the stream to read, as well as whether to keep the underlying stream open upon Close(), and the CRC32 instance to use.
Declaration Syntax
C# Visual Basic Visual C++
public CrcCalculatorStream(
	Stream stream,
	long length,
	bool leaveOpen,
	CRC32 crc32
)
Public Sub New ( _
	stream As Stream, _
	length As Long, _
	leaveOpen As Boolean, _
	crc32 As CRC32 _
)
public:
CrcCalculatorStream(
	Stream^ stream, 
	long long length, 
	bool leaveOpen, 
	CRC32^ crc32
)
Parameters
stream (Stream)
The underlying stream
length (Int64)
The length of the stream to slurp
leaveOpen (Boolean)
true to leave the underlying stream open upon close of the CrcCalculatorStream; false otherwise.
crc32 (CRC32)
the CRC32 instance to use to calculate the CRC32
Remarks

The stream uses the specified CRC32 instance, which allows the application to specify how the CRC gets calculated.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)