Class ContentStorage
Streamable resources content storage containter.
public class ContentStorage : DisposeBase, IDisposable, IReferencable
  - Inheritance
 - 
      objectContentStorage
 
- 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
contentManagerContentManagerThe content manager.
dataUrlstringThe file url.
chunksDataList<byte[]>The chunks data.
headerContentStorageHeaderThe header data.
Destroy()
Disposes of object resources.
protected override void Destroy()
  GetChunk(int)
Gets the chunk.
public ContentChunk GetChunk(int index)
  Parameters
indexintThe 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()