Struct FileId
A GUID/Hash pair that uniquely identifies a particular file. For each FileId, the Cache Server can store a separate binary stream for each FileType.
Namespace: UnityEditor.Build.CacheServer
Syntax
public struct FileId : IEqualityComparer
Fields
guid
The guid byte array.
Declaration
public readonly byte[] guid
Field Value
Type | Description |
---|---|
Byte[] |
hash
The hash code byte array.
Declaration
public readonly byte[] hash
Field Value
Type | Description |
---|---|
Byte[] |
Methods
Equals(Object, Object)
Check equality of two objects given their guid and hash code.
Declaration
public bool Equals(object x, object y)
Parameters
Type | Name | Description |
---|---|---|
Object | x | lhs object. |
Object | y | rhs object. |
Returns
Type | Description |
---|---|
Boolean |
From(Byte[], Byte[])
Create a FileId given a byte array guid and byte array hash code.
Declaration
public static FileId From(byte[] guid, byte[] hash)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | guid | GUID byte array. |
Byte[] | hash | Hash code byte array. |
Returns
Type | Description |
---|---|
FileId |
From(String, String)
Create a FileId given a string guid and string hash code representation.
Declaration
public static FileId From(string guidStr, string hashStr)
Parameters
Type | Name | Description |
---|---|---|
String | guidStr | GUID string representation. |
String | hashStr | Hash code string representation. |
Returns
Type | Description |
---|---|
FileId |
GetHashCode(Object)
Get the hash code for a specific object.
Declaration
public int GetHashCode(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object you want the hash code for. |
Returns
Type | Description |
---|---|
Int32 |