Struct Adler32
Implements Adler32 checksum algorithm based on Mark Adlers work
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.IO.ErrorHandling
Assembly: Azos.dll
Syntax
public struct Adler32
Properties
Value
Declaration
public uint Value { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Methods
Add(Byte[])
Addes byte[] to checksum
Declaration
public void Add(byte[] buff)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buff |
Add(Byte[], Int32, Int32)
Declaration
public void Add(byte[] buff, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buff | |
System.Int32 | offset | |
System.Int32 | count |
Add(String)
Addes string to checksum
Declaration
public void Add(string buff)
Parameters
Type | Name | Description |
---|---|---|
System.String | buff |
Add(String, Int32, Int32)
Declaration
public void Add(string buff, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
System.String | buff | |
System.Int32 | offset | |
System.Int32 | count |
ForBytes(Byte[])
Computes Adler32 for byte array
Declaration
public static uint ForBytes(byte[] buff)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buff |
Returns
Type | Description |
---|---|
System.UInt32 |
ForEncodedString(String, Encoding)
Computes Adler32 for encoded string
Declaration
public static uint ForEncodedString(string text, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Text.Encoding | encoding |
Returns
Type | Description |
---|---|
System.UInt32 |
ForString(String)
Computes Adler32 for binary string representation (in-memory)
Declaration
public static uint ForString(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text |
Returns
Type | Description |
---|---|
System.UInt32 |