Class Hasher
Helper class for calculating hashes.
Implements
Namespace: Evergine.Assets.Utils
Assembly: Evergine.Assets.dll
Syntax
public class Hasher : IHasher
Constructors
Hasher()
Initializes a new instance of the Hasher class.
Declaration
public Hasher()
Properties
WeProjFileInfo
Gets or sets the project file information.
Declaration
public FileInfo WeProjFileInfo { get; set; }
Property Value
Type | Description |
---|---|
FileInfo |
Methods
CalculateFileHash(AssetItem)
Calculates 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)
Calculates 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)
Calculates 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 path. |
Returns
Type | Description |
---|---|
string | The hash. |
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()