Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ContentStorage Class

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

    Streamable resources content storage containter.

    System.Object → DisposeBase → ContentStorage
    Derived from ContentStorage:

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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
    DisposeBase.Destroy()

    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
    System.Object.GetHashCode()

    LockChunks()

    Locks the chunks.

    public void LockChunks()

    UnlockChunks()

    Unlocks the chunks.

    public void UnlockChunks()

    Inherited Members

    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation