Class HashContextBase
A hash context.
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.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class HashContextBase
Constructors
HashContextBase(HashType)
Initializes a new instance of the HashContextBase class.
Declaration
public HashContextBase(HashType type)
Parameters
Type | Name | Description |
---|---|---|
HashType | type | The type. |
Properties
Type
Gets the type.
Declaration
public HashType Type { get; }
Property Value
Type | Description |
---|---|
HashType |
Methods
Compute(DataBuffer)
Computes the hash.
Declaration
public DataBuffer Compute(DataBuffer input)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | input | The input. |
Returns
Type | Description |
---|---|
DataBuffer |
Compute(HashType, DataBuffer)
Computes the hash for a given type.
Declaration
public static DataBuffer Compute(HashType type, DataBuffer input)
Parameters
Type | Name | Description |
---|---|---|
HashType | type | The type. |
DataBuffer | input | The input. |
Returns
Type | Description |
---|---|
DataBuffer |
Compute(HashType, String)
Computes the hash for a given type.
Declaration
public static DataBuffer Compute(HashType type, string inputString)
Parameters
Type | Name | Description |
---|---|---|
HashType | type | The type. |
System.String | inputString | The input string. |
Returns
Type | Description |
---|---|
DataBuffer |
Compute(String)
Computes the hash.
Declaration
public DataBuffer Compute(string inputString)
Parameters
Type | Name | Description |
---|---|---|
System.String | inputString | The input. |
Returns
Type | Description |
---|---|
DataBuffer |
Destroy()
Destroys this instance.
Declaration
public void Destroy()
DoCompute(DataBuffer)
Computes the hash.
Declaration
protected abstract DataBuffer DoCompute(DataBuffer input)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | input | The input. |
Returns
Type | Description |
---|---|
DataBuffer |
DoDestroy()
Destroys this instance.
Declaration
protected abstract void DoDestroy()