Table of Contents

Class ContentStorage

Namespace
Stride.Core.Streaming
Assembly
Stride.Core.Serialization.dll

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

int

LastAccessTime

Gets the last access time.

public DateTime LastAccessTime { get; }

Property Value

DateTime

LoadedChunksCount

Gets the amount of loaded chunks.

public int LoadedChunksCount { get; }

Property Value

int

PackageTime

Gets the time when container has been created (in UTC).

public DateTime PackageTime { get; }

Property Value

DateTime

Service

The content streaming service which manages this storage container.

public ContentStreamingService Service { get; }

Property Value

ContentStreamingService

Url

Gets the storage URL path.

public string Url { get; }

Property Value

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

contentManager ContentManager

The content manager.

dataUrl string

The file url.

chunksData List<byte[]>

The chunks data.

header ContentStorageHeader

The header data.

Destroy()

Disposes of object resources.

protected override void Destroy()

GetChunk(int)

Gets the chunk.

public ContentChunk GetChunk(int index)

Parameters

index int

The 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()