IdeaBlade DevForce 2010 Help Reference
CrcCalculatorStream Constructor(Stream,Int64,Boolean,CRC32)
See Also  Send Feedback
IdeaBlade.Core Assembly > Ionic.Crc Namespace > CrcCalculatorStream Class > CrcCalculatorStream Constructor : CrcCalculatorStream Constructor(Stream,Int64,Boolean,CRC32)



stream
The underlying stream
length
The length of the stream to slurp
leaveOpen
true to leave the underlying stream open upon close of the CrcCalculatorStream; false otherwise.
crc32
the CRC32 instance to use to calculate the 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.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal stream As Stream, _
   ByVal length As Long, _
   ByVal leaveOpen As Boolean, _
   ByVal crc32 As CRC32 _
)
Visual Basic (Usage)Copy Code
Dim stream As Stream
Dim length As Long
Dim leaveOpen As Boolean
Dim crc32 As CRC32
 
Dim instance As New CrcCalculatorStream(stream, length, leaveOpen, crc32)
C# 
public CrcCalculatorStream( 
   Stream stream,
   long length,
   bool leaveOpen,
   CRC32 crc32
)
C++/CLI 
public:
CrcCalculatorStream( 
   Stream^ stream,
   int64 length,
   bool leaveOpen,
   CRC32^ crc32
)

Parameters

stream
The underlying stream
length
The length of the stream to slurp
leaveOpen
true to leave the underlying stream open upon close of the CrcCalculatorStream; false otherwise.
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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.