ContentStorage Class
Namespace: Stride.Core.StreamingAssembly: Stride.Core.Serialization.dll
Streamable resources content storage containter.
public class ContentStorage : DisposeBase, IDisposable, IReferencable
Name | Description | |
---|---|---|
Properties | ||
ChunksCount | Gets the amount of chunks located inside the storage container. |
|
LastAccessTime | Gets the last access time. |
|
LoadedChunksCount | Gets the amount of loaded chunks. |
|
PackageTime | Gets the time when container has been created (in UTC). |
|
Service | The content streaming service which manages this storage container. |
|
Url | Gets the storage URL path. |
|
Methods | ||
Create(ContentManager, String, List<Byte[]>, out ContentStorageHeader) | Creates the new storage container at the specified location and generates header for that. |
|
Destroy() | Disposes of object resources. |
|
GetChunk(Int32) | Gets the chunk. |
|
GetHashCode() | ||
LockChunks() | Locks the chunks. |
|
UnlockChunks() | Unlocks the chunks. |
Properties
ChunksCount
Gets the amount of chunks located inside the storage container.
public int ChunksCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
LastAccessTime
Gets the last access time.
public DateTime LastAccessTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
LoadedChunksCount
Gets the amount of loaded chunks.
public int LoadedChunksCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PackageTime
Gets the time when container has been created (in UTC).
public DateTime PackageTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Service
The content streaming service which manages this storage container.
public ContentStreamingService Service { get; }
Property Value
Type | Description |
---|---|
ContentStreamingService |
Url
Gets the storage URL path.
public string Url { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Create(ContentManager, String, List<Byte[]>, out ContentStorageHeader)
Creates the new storage container at the specified location and generates header for that.
public static void Create(ContentManager contentManager, string dataUrl, List<byte[]> chunksData, out ContentStorageHeader header)
Parameters
Type | Name | Description |
---|---|---|
ContentManager | contentManager | The content manager. |
System.String | dataUrl | The file url. |
System.Collections.Generic.List<System.Byte[]> | chunksData | The chunks data. |
ContentStorageHeader | header | The header data. |
Destroy()
Disposes of object resources.
protected override void Destroy()
Overrides
GetChunk(Int32)
Gets the chunk.
public ContentChunk GetChunk(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
Returns
Type | Description |
---|---|
ContentChunk | Chunk |
GetHashCode()
public sealed override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
LockChunks()
Locks the chunks.
public void LockChunks()
UnlockChunks()
Unlocks the chunks.
public void UnlockChunks()