'Declaration Public Overloads Shared Function CalculateCrc32( _ ByVal stream As Stream, _ ByVal previousCrc As Integer _ ) As Integer
'Usage Dim stream As Stream Dim previousCrc As Integer Dim value As Integer value = ChecksumStream.CalculateCrc32(stream, previousCrc)
public static int CalculateCrc32( Stream stream, int previousCrc )
Parameters
- stream
- The stream whose checksum will be calculated.
- previousCrc
- The CRC32 checksum from a previous call to CalculateCrc32 or 0 if a new CRC should be calculated.
Return Value
The CRC32 checksum calculated for the buffer, including the previous CRC if any.