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



stream
The underlying stream
leaveOpen
true to leave the underlying stream open upon close of the CrcCalculatorStream; false otherwise.
The constructor allows the caller to specify how to handle the underlying stream at close.

Syntax

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

Parameters

stream
The underlying stream
leaveOpen
true to leave the underlying stream open upon close of the CrcCalculatorStream; false otherwise.

Remarks

The stream uses the default CRC32 algorithm, which implies a polynomial of 0xEDB88320.

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.