Method DeliverContent
DeliverContent(string, Hash128, long, uint)
Starts the process of delivering content based on its location.
Declaration
public RemoteContentId DeliverContent(string url, Hash128 hash, long size, uint crc = 0)
Parameters
Type | Name | Description |
---|---|---|
string | url | The url of the remote content. |
Hash128 | hash | The hash of the remote content. If not set, the cache will not be used. |
long | size | The expected size of the remote content. If not set, accurate download progress is not available. |
uint | crc | The crc of the content. If not set, the crc is not checked. |
Returns
Type | Description |
---|---|
RemoteContentId | The remote content id for the content that is downloaded. This id can be used to check the status of the download. |
DeliverContent(in RemoteContentLocation)
Starts the process of delivering content based on its location.
Declaration
public RemoteContentId DeliverContent(in RemoteContentLocation loc)
Parameters
Type | Name | Description |
---|---|---|
RemoteContentLocation | loc | The location of the content. |
Returns
Type | Description |
---|---|
RemoteContentId | The generated remote content id for the location. This can be used to track the progress. |
DeliverContent(in RemoteContentId)
Starts the delivery process for content identified by the remote content id.
Declaration
public void DeliverContent(in RemoteContentId id)
Parameters
Type | Name | Description |
---|---|---|
RemoteContentId | id | The remote content id for the content. |
DeliverContent(in FixedString512Bytes)
Delivers a named content set.
Declaration
public RemoteContentId DeliverContent(in FixedString512Bytes setName)
Parameters
Type | Name | Description |
---|---|---|
FixedString512Bytes | setName | The name of the content set. These are defined during the publishing process. |
Returns
Type | Description |
---|---|
RemoteContentId | The remote id for the content set. This can be used to check the download status. |
DeliverContent(RemoteContentId*, int)
Downloads multiple files as a single set.
Declaration
public RemoteContentId DeliverContent(RemoteContentId* remoteIds, int length)
Parameters
Type | Name | Description |
---|---|---|
RemoteContentId* | remoteIds | A pointer to the array of remote content ids. |
int | length | The number of remote content ids. |
Returns
Type | Description |
---|---|
RemoteContentId | The remote id for the content set. This can be used to check the download status. |
DeliverContent(in UnsafeList<RemoteContentId>)
Starts the delivery process of a set of contents.
Declaration
public RemoteContentId DeliverContent(in UnsafeList<RemoteContentId> remoteIds)
Parameters
Type | Name | Description |
---|---|---|
UnsafeList<RemoteContentId> | remoteIds | The set of remote ids to deliver. |
Returns
Type | Description |
---|---|
RemoteContentId | A generated remote content id that can be used to track the progress of the delivery. |