Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    Blob Class

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

    Stores immutable binary content.

    System.Object → ReferenceBase → Blob
    Derived from Blob:

    public class Blob : ReferenceBase, IReferencable
    Name Description
    Constructors
    Blob(ObjectDatabase, ObjectId)
    Properties
    Content

    Gets the content.

    ObjectId

    Gets the ObjectId.

    Size

    Gets the size.

    Methods
    Destroy()

    Releases unmanaged and - optionally - managed resources

    GetContentStream()

    Gets a NativeStream over the Content.

    | Improve this Doc View Source

    Constructors


    Blob(ObjectDatabase, ObjectId)

    protected Blob(ObjectDatabase objectDatabase, ObjectId objectId)
    Parameters
    Type Name Description
    ObjectDatabase objectDatabase
    ObjectId objectId
    | Improve this Doc View Source

    Properties


    Content

    Gets the content.

    public IntPtr Content { get; }
    Property Value
    Type Description
    System.IntPtr

    The content.


    ObjectId

    Gets the ObjectId.

    public ObjectId ObjectId { get; }
    Property Value
    Type Description
    ObjectId

    The ObjectId.


    Size

    Gets the size.

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

    The size.

    | Improve this Doc View Source

    Methods


    Destroy()

    Releases unmanaged and - optionally - managed resources

    protected override void Destroy()
    Overrides
    ReferenceBase.Destroy()

    GetContentStream()

    Gets a NativeStream over the Content.

    public NativeStream GetContentStream()
    Returns
    Type Description
    NativeStream

    A NativeStream over the Content.


    Inherited Members

    ReferenceBase.ReferenceCount
    ReferenceBase.AddReference()
    ReferenceBase.Release()

    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