Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ContentStorageHeader Struct

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

    Header with description of streamable resource data storage.

    public struct ContentStorageHeader
    Name Description
    Fields
    Chunks

    The data chunks.

    DataUrl

    The data container url.

    HashCode

    The hash code for the package header. Used to ensure data consistency.

    InitialImage

    True if data is followed by initial low resolution image.

    PackageTime

    Time when package has been created (in UTC).

    Properties
    ChunksCount

    Gets the amount of data chunks.

    Methods
    Read(SerializationStream, out ContentStorageHeader)

    Reads header instance from a stream.

    Write(SerializationStream)

    Writes this instance to a stream.

    | Improve this Doc View Source

    Fields


    Chunks

    The data chunks.

    public ContentStorageHeader.ChunkEntry[] Chunks
    Field Value
    Type Description
    ContentStorageHeader.ChunkEntry[]

    DataUrl

    The data container url.

    public string DataUrl
    Field Value
    Type Description
    System.String

    HashCode

    The hash code for the package header. Used to ensure data consistency.

    public int HashCode
    Field Value
    Type Description
    System.Int32

    InitialImage

    True if data is followed by initial low resolution image.

    public bool InitialImage
    Field Value
    Type Description
    System.Boolean

    PackageTime

    Time when package has been created (in UTC).

    public DateTime PackageTime
    Field Value
    Type Description
    System.DateTime
    | Improve this Doc View Source

    Properties


    ChunksCount

    Gets the amount of data chunks.

    public readonly int ChunksCount { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Methods


    Read(SerializationStream, out ContentStorageHeader)

    Reads header instance from a stream.

    public static void Read(SerializationStream stream, out ContentStorageHeader result)
    Parameters
    Type Name Description
    SerializationStream stream

    The source stream.

    ContentStorageHeader result

    Result data


    Write(SerializationStream)

    Writes this instance to a stream.

    public void Write(SerializationStream stream)
    Parameters
    Type Name Description
    SerializationStream stream

    The destination stream.


    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()

    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