Class HashingMethods
Creates the RawHash for an object.
Namespace: UnityEditor.Build.Pipeline.Utilities
Syntax
public static class HashingMethods
Methods
Calculate(Object)
Creates the hash for an object.
Declaration
public static RawHash Calculate(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object. |
Returns
Type | Description |
---|---|
RawHash | Returns the hash of the object. |
Calculate(Object[])
Creates the hash for a set of objects.
Declaration
public static RawHash Calculate(params object[] objects)
Parameters
Type | Name | Description |
---|---|---|
Object[] | objects | The objects. |
Returns
Type | Description |
---|---|
RawHash | Returns the hash of the set of objects. |
Calculate<T>(Object)
Creates the hash for an object.
Declaration
public static RawHash Calculate<T>(object obj)
where T : HashAlgorithm
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object. |
Returns
Type | Description |
---|---|
RawHash | Returns the hash of the object. |
Type Parameters
Name | Description |
---|---|
T | The hash algorithm type. |
Calculate<T>(Object[])
Creates the hash for a set of objects.
Declaration
public static RawHash Calculate<T>(params object[] objects)
where T : HashAlgorithm
Parameters
Type | Name | Description |
---|---|---|
Object[] | objects | The objects. |
Returns
Type | Description |
---|---|
RawHash | Returns the hash of the set of objects. |
Type Parameters
Name | Description |
---|---|
T | The hash algorithm type. |
CalculateFile(String)
Creates the hash for a file.
Declaration
public static RawHash CalculateFile(string filePath)
Parameters
Type | Name | Description |
---|---|---|
String | filePath | The file path. |
Returns
Type | Description |
---|---|
RawHash | Returns the hash of the file. |
CalculateFile<T>(String)
Creates the hash for a file.
Declaration
public static RawHash CalculateFile<T>(string filePath)
where T : HashAlgorithm
Parameters
Type | Name | Description |
---|---|---|
String | filePath | The file path. |
Returns
Type | Description |
---|---|
RawHash | Returns the hash of the file. |
Type Parameters
Name | Description |
---|---|
T | The hash algorithm type. |
CalculateStream(Stream)
Creates the hash for a stream of data.
Declaration
public static RawHash CalculateStream(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream of data. |
Returns
Type | Description |
---|---|
RawHash | Returns the hash of the stream. |
CalculateStream<T>(Stream)
Creates the hash for a stream of data.
Declaration
public static RawHash CalculateStream<T>(Stream stream)
where T : HashAlgorithm
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream of data. |
Returns
Type | Description |
---|---|
RawHash | Returns the hash of the stream. |
Type Parameters
Name | Description |
---|---|
T | The hash algorithm type. |