Class PinnedArray<T> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class PinnedArray<T>

    Inheritance
    System.Object
    PinnedArray<T>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: UTJ.Alembic
    Syntax
    public class PinnedArray<T> : IDisposable, IEnumerable<T> where T : struct
    Type Parameters
    Name Description
    T

    Constructors

    PinnedArray(T[], Boolean)

    Declaration
    public PinnedArray(T[] data, bool clone = false)
    Parameters
    Type Name Description
    T[] data
    System.Boolean clone

    PinnedArray(Int32)

    Declaration
    public PinnedArray(int size)
    Parameters
    Type Name Description
    System.Int32 size

    Properties

    Array

    Declaration
    public T[] Array { get; }
    Property Value
    Type Description
    T[]

    Item[Int32]

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

    Length

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

    Pointer

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

    Methods

    Assign(T[])

    Declaration
    public bool Assign(T[] source)
    Parameters
    Type Name Description
    T[] source
    Returns
    Type Description
    System.Boolean

    Clone()

    Declaration
    public PinnedArray<T> Clone()
    Returns
    Type Description
    PinnedArray<T>

    Dispose()

    Declaration
    public void Dispose()
    Implements
    System.IDisposable.Dispose()

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    GetEnumerator()

    Declaration
    public IEnumerator<T> GetEnumerator()
    Returns
    Type Description
    IEnumerator<T>

    Operators

    Implicit(PinnedArray<T> to IntPtr)

    Declaration
    public static implicit operator IntPtr(PinnedArray<T> v)
    Parameters
    Type Name Description
    PinnedArray<T> v
    Returns
    Type Description
    System.IntPtr

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023