Class Hasher
Helper class to calculate hashes.
Inherited Members
Namespace: Evergine.Assets.Utils
Assembly: Evergine.Assets.dll
Syntax
public class Hasher : IHasher, IDisposable
Constructors
Hasher()
Initializes a new instance of the Hasher class.
Declaration
public Hasher()
Properties
WeProjFileInfo
Gets or sets the weprojFileInfo.
Declaration
public FileInfo WeProjFileInfo { get; set; }
Property Value
Type | Description |
---|---|
FileInfo |
Methods
CalculateFileHash(AssetItem)
Calculate the hash for an AssetItem.
Declaration
public string CalculateFileHash(AssetItem assetItem)
Parameters
Type | Name | Description |
---|---|---|
AssetItem | assetItem | The AssetItem. |
Returns
Type | Description |
---|---|
string | The hash. |
ComputeElementHash(ContentElement)
Calculate the hash for a ContentElement.
Declaration
public string ComputeElementHash(ContentElement element)
Parameters
Type | Name | Description |
---|---|---|
ContentElement | element | The ContentElement. |
Returns
Type | Description |
---|---|
string | The hash. |
ComputeHash(string, string)
Calculate the hash for a file in a relative path.
Declaration
public string ComputeHash(string filePath, string relative)
Parameters
Type | Name | Description |
---|---|---|
string | filePath | The file path. |
string | relative | The relative. |
Returns
Type | Description |
---|---|
string | The hash. |
Dispose()
Declaration
public void Dispose()