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.
Implements
Inherited Members
Namespace: UnityEditor.Build.CacheServer
Assembly: UnityEditor.CacheServer.dll
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 |
---|---|
bool |
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 |
---|---|
int |