Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ChunkHeader Class

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

    This class describes the header of an asset serialized in a blob file. Its (serialized) size has to remain constant

    System.Object → ChunkHeader
    Derived from ChunkHeader:

    public sealed class ChunkHeader
    Name Description
    Constructors
    ChunkHeader()
    Fields
    CurrentVersion
    Magic
    Properties
    OffsetToObject
    OffsetToReferences
    Type
    Version
    Methods
    Read(SerializationStream)
    Write(SerializationStream)
    | Improve this Doc View Source

    Constructors


    ChunkHeader()

    public ChunkHeader()
    | Improve this Doc View Source

    Fields


    CurrentVersion

    public const int CurrentVersion = 1
    Field Value
    Type Description
    System.Int32

    Magic

    public const int Magic = 1128812107
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Properties


    OffsetToObject

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

    OffsetToReferences

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

    Type

    public string Type { get; set; }
    Property Value
    Type Description
    System.String

    Version

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

    Methods


    Read(SerializationStream)

    public static ChunkHeader Read(SerializationStream stream)
    Parameters
    Type Name Description
    SerializationStream stream
    Returns
    Type Description
    ChunkHeader

    Write(SerializationStream)

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

    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