Detailed Description

Computes an Adler-32 checksum.

The Adler checksum is similar to a CRC checksum, but faster to compute, though less reliable. It is used in producing RFC1950 compressed streams. The Adler checksum is a required part of the "ZLIB" standard. Applications will almost never need to use this class directly.

<exclude>

Static Public Member Functions

static uint Adler32 (uint adler, byte[] buf, int index, int len)
 Calculates the Adler32 checksum. More...
 

Static Private Attributes

static readonly uint BASE = 65521
 
static readonly int NMAX = 5552
 

Member Function Documentation

static uint Zlib.Adler.Adler32 ( uint  adler,
byte[]  buf,
int  index,
int  len 
)
inlinestatic

Calculates the Adler32 checksum.

This is used within ZLIB. You probably don't need to use this directly.

To compute an Adler32 checksum on a byte array:

var adler = Adler.Adler32(0, null, 0, 0);
adler = Adler.Adler32(adler, buffer, index, length);

Member Data Documentation

readonly uint Zlib.Adler.BASE = 65521
staticprivate
readonly int Zlib.Adler.NMAX = 5552
staticprivate