Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ContentChunk Class

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

    Content storage data chunk.

    System.Object → ContentChunk
    Derived from ContentChunk:

    public sealed class ContentChunk
    Name Description
    Properties
    ExistsInFile

    Gets a value indicating whether this exists in file.

    IsLoaded

    Gets a value indicating whether this chunk is loaded.

    IsMissing

    Gets a value indicating whether this chunk is not loaded.

    LastAccessTime

    Gets the last access time.

    Location

    Gets the chunk location in file (adress of the first byte).

    Size

    Gets the chunk size in file (in bytes).

    Storage

    Gets the parent storage container.

    Methods
    GetData(DatabaseFileProvider)

    Loads chunk data from the storage container.

    RegisterUsage()

    Registers the usage operation of chunk data.

    | Improve this Doc View Source

    Properties


    ExistsInFile

    Gets a value indicating whether this exists in file.

    public bool ExistsInFile { get; }
    Property Value
    Type Description
    System.Boolean

    IsLoaded

    Gets a value indicating whether this chunk is loaded.

    public bool IsLoaded { get; }
    Property Value
    Type Description
    System.Boolean

    IsMissing

    Gets a value indicating whether this chunk is not loaded.

    public bool IsMissing { get; }
    Property Value
    Type Description
    System.Boolean

    LastAccessTime

    Gets the last access time.

    public DateTime LastAccessTime { get; }
    Property Value
    Type Description
    System.DateTime

    Location

    Gets the chunk location in file (adress of the first byte).

    public int Location { get; }
    Property Value
    Type Description
    System.Int32

    Size

    Gets the chunk size in file (in bytes).

    public int Size { get; }
    Property Value
    Type Description
    System.Int32

    Storage

    Gets the parent storage container.

    public ContentStorage Storage { get; }
    Property Value
    Type Description
    ContentStorage
    | Improve this Doc View Source

    Methods


    GetData(DatabaseFileProvider)

    Loads chunk data from the storage container.

    public IntPtr GetData(DatabaseFileProvider fileProvider)
    Parameters
    Type Name Description
    DatabaseFileProvider fileProvider

    Database file provider.

    Returns
    Type Description
    System.IntPtr

    RegisterUsage()

    Registers the usage operation of chunk data.

    public void RegisterUsage()

    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