Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    UnmanagedArray<T> Class

    Namespace: Stride.Core
    Assembly: Stride.Core.dll
    System.Object → UnmanagedArray<T>
    Derived from UnmanagedArray<T>:

    public class UnmanagedArray<T> : IDisposable where T : struct
    Type Parameters
    Name Description
    T
    Name Description
    Constructors
    UnmanagedArray(Int32)
    UnmanagedArray(Int32, IntPtr)
    Properties
    Item[Int32]
    Length
    Pointer
    Methods
    Dispose()
    Read(T[], Int32)
    Read(T[], Int32, Int32, Int32)
    Write(T[], Int32)
    Write(T[], Int32, Int32, Int32)
    | Improve this Doc View Source

    Constructors


    UnmanagedArray(Int32)

    public UnmanagedArray(int length)
    Parameters
    Type Name Description
    System.Int32 length

    UnmanagedArray(Int32, IntPtr)

    public UnmanagedArray(int length, IntPtr unmanagedDataPtr)
    Parameters
    Type Name Description
    System.Int32 length
    System.IntPtr unmanagedDataPtr
    | Improve this Doc View Source

    Properties


    Item[Int32]

    public T this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    T

    Length

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

    Pointer

    public IntPtr Pointer { get; }
    Property Value
    Type Description
    System.IntPtr
    | Improve this Doc View Source

    Methods


    Dispose()

    public void Dispose()

    Read(T[], Int32)

    public void Read(T[] destination, int offset = 0)
    Parameters
    Type Name Description
    T[] destination
    System.Int32 offset

    Read(T[], Int32, Int32, Int32)

    public void Read(T[] destination, int pointerByteOffset, int arrayOffset, int arrayLen)
    Parameters
    Type Name Description
    T[] destination
    System.Int32 pointerByteOffset
    System.Int32 arrayOffset
    System.Int32 arrayLen

    Write(T[], Int32)

    public void Write(T[] source, int offset = 0)
    Parameters
    Type Name Description
    T[] source
    System.Int32 offset

    Write(T[], Int32, Int32, Int32)

    public void Write(T[] source, int pointerByteOffset, int arrayOffset, int arrayLen)
    Parameters
    Type Name Description
    T[] source
    System.Int32 pointerByteOffset
    System.Int32 arrayOffset
    System.Int32 arrayLen

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    UnmanagedArrayExtensions.Fill<T>(UnmanagedArray<T>, T, Int32, Int32)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation