Interface IDownloadItem
Represents a single file download request from a Cache Server.
Namespace: UnityEditor.Build.CacheServer
Syntax
public interface IDownloadItem
Properties
Id
the FileId (guid/hash pair) of the file to download
Declaration
FileId Id { get; }
Property Value
| Type | Description |
|---|---|
| FileId |
Type
the FileType for the given FileId to download
Declaration
FileType Type { get; }
Property Value
| Type | Description |
|---|---|
| FileType |
Methods
Finish()
Method called when a download is finished. Used to finalize and cleanup a single file download. e.g. to move a temporary file into place.
Declaration
void Finish()
GetWriteStream(Int64)
Provides a writable stream for saving downloaded file bytes
Declaration
Stream GetWriteStream(long size)
Parameters
| Type | Name | Description |
|---|---|---|
| Int64 | size | Size of file to download |
Returns
| Type | Description |
|---|---|
| Stream | A writable stream |