Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    UpdatablePropertyBase Class

    Namespace: Stride.Updater
    Assembly: Stride.Engine.dll

    Shared class between UpdatableProperty and UpdatableCustomAccessor.

    System.Object → UpdatableMember → UpdatablePropertyBase
    Derived from UpdatablePropertyBase: UpdatableCustomAccessor UpdatableProperty

    public abstract class UpdatablePropertyBase : UpdatableMember
    Name Description
    Methods
    GetBlittable(IntPtr, IntPtr)

    Gets a blittable property (from its pointer).

    GetStructAndUnbox(IntPtr, Object)

    Gets and stores a non-blittable struct property into pre-allocated data, and return pointer to its start.

    SetBlittable(IntPtr, IntPtr)

    Sets a blittable property (from its pointer).

    SetStruct(IntPtr, Object)

    Sets a non-blittable struct property (given in boxed form).

    | Improve this Doc View Source

    Methods


    GetBlittable(IntPtr, IntPtr)

    Gets a blittable property (from its pointer).

    public abstract void GetBlittable(IntPtr obj, IntPtr data)
    Parameters
    Type Name Description
    System.IntPtr obj

    The container object.

    System.IntPtr data

    The struct data.


    GetStructAndUnbox(IntPtr, Object)

    Gets and stores a non-blittable struct property into pre-allocated data, and return pointer to its start.

    public abstract IntPtr GetStructAndUnbox(IntPtr obj, object data)
    Parameters
    Type Name Description
    System.IntPtr obj

    The container object.

    System.Object data

    The pre-allocated boxed struct.

    Returns
    Type Description
    System.IntPtr

    SetBlittable(IntPtr, IntPtr)

    Sets a blittable property (from its pointer).

    public abstract void SetBlittable(IntPtr obj, IntPtr data)
    Parameters
    Type Name Description
    System.IntPtr obj

    The container object.

    System.IntPtr data

    The struct data.


    SetStruct(IntPtr, Object)

    Sets a non-blittable struct property (given in boxed form).

    public abstract void SetStruct(IntPtr obj, object data)
    Parameters
    Type Name Description
    System.IntPtr obj

    The container object.

    System.Object data

    The new value to unbox and set


    Inherited Members

    UpdatableMember.MemberType
    UpdatableMember.CreateEnterChecker()

    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