Show / Hide Table of Contents

Class Adler

Computes an Adler-32 checksum.

Inheritance
System.Object
Adler
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Packaging.Ionic.Zlib
Assembly: EPPlus.dll
Syntax
public sealed class Adler
Remarks

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.

Methods

Adler32(UInt32, Byte[], Int32, Int32)

Calculates the Adler32 checksum.

Declaration
public static uint Adler32(uint adler, byte[] buf, int index, int len)
Parameters
Type Name Description
System.UInt32 adler
System.Byte[] buf
System.Int32 index
System.Int32 len
Returns
Type Description
System.UInt32
Remarks

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

Examples

To compute an Adler32 checksum on a byte array:

  var adler = Adler.Adler32(0, null, 0, 0);
  adler = Adler.Adler32(adler, buffer, index, length);
In This Article
Back to top Generated by DocFX