Xceed .NET Libraries Documentation
Xceed.Compression.Formats Assembly / Xceed.Compression.Formats Namespace / ChecksumStream Class / CalculateAdler32 Method / CalculateAdler32(Stream,Int32) Method
The stream whose checksum will be calculated.
The Adler32 checksum from a previous call to CalculateAdler32 or 0 if a new CRC should be calculated.


In This Topic
    CalculateAdler32(Stream,Int32) Method
    In This Topic
    Calculates an Adler32 checksum for the specified stream.
    Syntax
    'Declaration
     
    Public Overloads Shared Function CalculateAdler32( _
       ByVal stream As Stream, _
       ByVal previousAdler As Integer _
    ) As Integer
    'Usage
     
    Dim stream As Stream
    Dim previousAdler As Integer
    Dim value As Integer
     
    value = ChecksumStream.CalculateAdler32(stream, previousAdler)
    public static int CalculateAdler32( 
       Stream stream,
       int previousAdler
    )

    Parameters

    stream
    The stream whose checksum will be calculated.
    previousAdler
    The Adler32 checksum from a previous call to CalculateAdler32 or 0 if a new CRC should be calculated.

    Return Value

    The Adler32 checksum calculated for the buffer, including the previous CRC if any.
    Remarks

    The method expects the stream to be open and ready for reading.

    The stream will be read 8 KB at a time.

    The method will not close the stream when the end is reached.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also