Class ContentStorage
Streamable resources content storage containter.
public class ContentStorage : DisposeBase, IDisposable, IReferencable
- Inheritance
-
ContentStorage
- Implements
- Inherited Members
- Extension Methods
Properties
ChunksCount
Gets the amount of chunks located inside the storage container.
public int ChunksCount { get; }
Property Value
LastAccessTime
Gets the last access time.
public DateTime LastAccessTime { get; }
Property Value
LoadedChunksCount
Gets the amount of loaded chunks.
public int LoadedChunksCount { get; }
Property Value
PackageTime
Gets the time when container has been created (in UTC).
public DateTime PackageTime { get; }
Property Value
Service
The content streaming service which manages this storage container.
public ContentStreamingService Service { get; }
Property Value
Url
Gets the storage URL path.
public string Url { get; }
Property Value
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
contentManager
ContentManagerThe content manager.
dataUrl
stringThe file url.
chunksData
List<byte[]>The chunks data.
header
ContentStorageHeaderThe header data.
Destroy()
Disposes of object resources.
protected override void Destroy()
GetChunk(int)
Gets the chunk.
public ContentChunk GetChunk(int index)
Parameters
index
intThe index.
Returns
- ContentChunk
Chunk
GetHashCode()
Serves as the default hash function.
public override sealed int GetHashCode()
Returns
- int
A hash code for the current object.
LockChunks()
Locks the chunks.
public void LockChunks()
UnlockChunks()
Unlocks the chunks.
public void UnlockChunks()