Xceed .NET Libraries Documentation
CalculateAdler32(Byte[],Int32,Int32,Int32) Method


Xceed.Compression.Formats Assembly > Xceed.Compression.Formats Namespace > ChecksumStream Class > CalculateAdler32 Method : CalculateAdler32(Byte[],Int32,Int32,Int32) Method
The byte array whose checksum will be calculated.
The zero-based byte offset in buffer at which to begin reading bytes.
The number of bytes to read from buffer.
The Adler32 checksum from a previous call to CalculateAdler32 or 0 if a new CRC should be calculated.
Calculates an Adler32 checksum for the specified byte array.
Syntax
'Declaration
 
Public Overloads Shared Function CalculateAdler32( _

   ByVal buffer() As Byte, _

   ByVal offset As Integer, _

   ByVal count As Integer, _

   ByVal previousAdler As Integer _

) As Integer
'Usage
 
Dim buffer() As Byte

Dim offset As Integer

Dim count As Integer

Dim previousAdler As Integer

Dim value As Integer

 

value = ChecksumStream.CalculateAdler32(buffer, offset, count, previousAdler)
public static int CalculateAdler32( 

   byte[] buffer,

   int offset,

   int count,

   int previousAdler

)

Parameters

buffer
The byte array whose checksum will be calculated.
offset
The zero-based byte offset in buffer at which to begin reading bytes.
count
The number of bytes to read from buffer.
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.
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

Reference

ChecksumStream Class
ChecksumStream Members
Overload List