'Declaration Public Function New( _ ByVal inner As Stream, _ ByVal checksumType As ChecksumType, _ ByVal expectedChecksum As Integer, _ ByVal initialChecksum As Integer _ )
'Usage Dim inner As Stream Dim checksumType As ChecksumType Dim expectedChecksum As Integer Dim initialChecksum As Integer Dim instance As New ChecksumStream(inner, checksumType, expectedChecksum, initialChecksum)
public ChecksumStream( Stream inner, ChecksumType checksumType, int expectedChecksum, int initialChecksum )
Parameters
- inner
- The stream whose checksum will be calculated.
- checksumType
- A ChecksumType value indicating which type of checksum to calculate.
- expectedChecksum
- The checksum value that is expected after all the data has been read from the inner stream.
- initialChecksum
- The initial checksum value to use.