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

    Struct VectorArray<T>

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: UnityEngine.Experimental
    Syntax
    public struct VectorArray<T>
    Type Parameters
    Name Description
    T

    Constructors

    VectorArray(T[], UInt32, UInt32, Boolean)

    Declaration
    public VectorArray(T[] array, uint offset, uint count, bool clearToDefault)
    Parameters
    Type Name Description
    T[] array
    System.UInt32 offset
    System.UInt32 count
    System.Boolean clearToDefault

    VectorArray(UInt32, Boolean)

    Declaration
    public VectorArray(uint capacity, bool clearToDefault)
    Parameters
    Type Name Description
    System.UInt32 capacity
    System.Boolean clearToDefault

    VectorArray(ref VectorArray<T>, UInt32, UInt32)

    Declaration
    public VectorArray(ref VectorArray<T> vec, uint offset, uint count)
    Parameters
    Type Name Description
    VectorArray<T> vec
    System.UInt32 offset
    System.UInt32 count

    Fields

    k_InvalidIdx

    Declaration
    public const uint k_InvalidIdx = 4294967295U
    Field Value
    Type Description
    System.UInt32

    Properties

    Item[UInt32]

    Declaration
    public T this[uint index] { get; set; }
    Parameters
    Type Name Description
    System.UInt32 index
    Property Value
    Type Description
    T

    Methods

    Add(T)

    Declaration
    public uint Add(T obj)
    Parameters
    Type Name Description
    T obj
    Returns
    Type Description
    System.UInt32

    Add(T[], UInt32)

    Declaration
    public uint Add(T[] objs, uint count)
    Parameters
    Type Name Description
    T[] objs
    System.UInt32 count
    Returns
    Type Description
    System.UInt32

    Add(ref VectorArray<T>)

    Declaration
    public uint Add(ref VectorArray<T> vec)
    Parameters
    Type Name Description
    VectorArray<T> vec
    Returns
    Type Description
    System.UInt32

    AddUnchecked(T)

    Declaration
    public uint AddUnchecked(T obj)
    Parameters
    Type Name Description
    T obj
    Returns
    Type Description
    System.UInt32

    AddUnchecked(T[], UInt32)

    Declaration
    public uint AddUnchecked(T[] objs, uint count)
    Parameters
    Type Name Description
    T[] objs
    System.UInt32 count
    Returns
    Type Description
    System.UInt32

    AddUnchecked(ref VectorArray<T>)

    Declaration
    public uint AddUnchecked(ref VectorArray<T> vec)
    Parameters
    Type Name Description
    VectorArray<T> vec
    Returns
    Type Description
    System.UInt32

    AddUnique(T)

    Declaration
    public uint AddUnique(T obj)
    Parameters
    Type Name Description
    T obj
    Returns
    Type Description
    System.UInt32

    AddUnique(T[], UInt32)

    Declaration
    public uint AddUnique(T[] objs, uint count)
    Parameters
    Type Name Description
    T[] objs
    System.UInt32 count
    Returns
    Type Description
    System.UInt32

    AddUnique(ref VectorArray<T>)

    Declaration
    public uint AddUnique(ref VectorArray<T> vec)
    Parameters
    Type Name Description
    VectorArray<T> vec
    Returns
    Type Description
    System.UInt32

    AddUniqueUnchecked(T)

    Declaration
    public uint AddUniqueUnchecked(T obj)
    Parameters
    Type Name Description
    T obj
    Returns
    Type Description
    System.UInt32

    AddUniqueUnchecked(T[], UInt32)

    Declaration
    public uint AddUniqueUnchecked(T[] objs, uint count)
    Parameters
    Type Name Description
    T[] objs
    System.UInt32 count
    Returns
    Type Description
    System.UInt32

    AddUniqueUnchecked(ref VectorArray<T>)

    Declaration
    public uint AddUniqueUnchecked(ref VectorArray<T> vec)
    Parameters
    Type Name Description
    VectorArray<T> vec
    Returns
    Type Description
    System.UInt32

    AsArray(out UInt32, out UInt32)

    Declaration
    public T[] AsArray(out uint offset, out uint count)
    Parameters
    Type Name Description
    System.UInt32 offset
    System.UInt32 count
    Returns
    Type Description
    T[]

    CapacityAvailable()

    Declaration
    public uint CapacityAvailable()
    Returns
    Type Description
    System.UInt32

    CapacityTotal()

    Declaration
    public uint CapacityTotal()
    Returns
    Type Description
    System.UInt32

    Contains(T)

    Declaration
    public bool Contains(T designator)
    Parameters
    Type Name Description
    T designator
    Returns
    Type Description
    System.Boolean

    Contains<U>(U, VectorArray<T>.Comparator<U>)

    Declaration
    public bool Contains<U>(U designator, VectorArray<T>.Comparator<U> compareDelegate)
    Parameters
    Type Name Description
    U designator
    VectorArray.Comparator<U> compareDelegate
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    U

    CopyTo(T[], Int32, out UInt32)

    Declaration
    public void CopyTo(T[] destination, int destinationStart, out uint count)
    Parameters
    Type Name Description
    T[] destination
    System.Int32 destinationStart
    System.UInt32 count

    Count()

    Declaration
    public uint Count()
    Returns
    Type Description
    System.UInt32

    ExtractTo<U>(U[], Int32, out UInt32, VectorArray<T>.Extractor<U>)

    Declaration
    public void ExtractTo<U>(U[] destination, int destinationStart, out uint count, VectorArray<T>.Extractor<U> extractorDelegate)
    Parameters
    Type Name Description
    U[] destination
    System.Int32 destinationStart
    System.UInt32 count
    VectorArray.Extractor<U> extractorDelegate
    Type Parameters
    Name Description
    U

    ExtractTo<U>(ref VectorArray<U>, VectorArray<T>.Extractor<U>)

    Declaration
    public void ExtractTo<U>(ref VectorArray<U> destination, VectorArray<T>.Extractor<U> extractorDelegate)
    Parameters
    Type Name Description
    VectorArray<U> destination
    VectorArray.Extractor<U> extractorDelegate
    Type Parameters
    Name Description
    U

    FindFirst(out UInt32, ref T)

    Declaration
    public bool FindFirst(out uint idx, ref T designator)
    Parameters
    Type Name Description
    System.UInt32 idx
    T designator
    Returns
    Type Description
    System.Boolean

    FindFirst<U>(out UInt32, ref U, VectorArray<T>.Comparator<U>)

    Declaration
    public bool FindFirst<U>(out uint idx, ref U designator, VectorArray<T>.Comparator<U> compareDelegate)
    Parameters
    Type Name Description
    System.UInt32 idx
    U designator
    VectorArray.Comparator<U> compareDelegate
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    U

    Purge(UInt32)

    Declaration
    public void Purge(uint count)
    Parameters
    Type Name Description
    System.UInt32 count

    Purge(UInt32, VectorArray<T>.Cleanup)

    Declaration
    public void Purge(uint count, VectorArray<T>.Cleanup cleanupDelegate)
    Parameters
    Type Name Description
    System.UInt32 count
    VectorArray.Cleanup<> cleanupDelegate

    Reserve(UInt32)

    Declaration
    public void Reserve(uint capacity)
    Parameters
    Type Name Description
    System.UInt32 capacity

    Reset()

    Declaration
    public void Reset()

    Reset(UInt32)

    Declaration
    public void Reset(uint capacity)
    Parameters
    Type Name Description
    System.UInt32 capacity

    Reset(UInt32, VectorArray<T>.Cleanup)

    Declaration
    public void Reset(uint capacity, VectorArray<T>.Cleanup cleanupDelegate)
    Parameters
    Type Name Description
    System.UInt32 capacity
    VectorArray.Cleanup<> cleanupDelegate

    Reset(VectorArray<T>.Cleanup)

    Declaration
    public void Reset(VectorArray<T>.Cleanup cleanupDelegate)
    Parameters
    Type Name Description
    VectorArray.Cleanup<> cleanupDelegate

    Resize(UInt32)

    Declaration
    public void Resize(uint size)
    Parameters
    Type Name Description
    System.UInt32 size

    Resize(UInt32, VectorArray<T>.Cleanup)

    Declaration
    public void Resize(uint size, VectorArray<T>.Cleanup cleanupDelegate)
    Parameters
    Type Name Description
    System.UInt32 size
    VectorArray.Cleanup<> cleanupDelegate

    Sort()

    Declaration
    public void Sort()

    Sort(IComparer<T>)

    Declaration
    public void Sort(IComparer<T> comparer)
    Parameters
    Type Name Description
    System.Collections.Generic.IComparer<T> comparer

    Subrange(UInt32, UInt32)

    Declaration
    public VectorArray<T> Subrange(uint offset, uint count)
    Parameters
    Type Name Description
    System.UInt32 offset
    System.UInt32 count
    Returns
    Type Description
    VectorArray<T>

    Swap(UInt32, UInt32)

    Declaration
    public void Swap(uint first, uint second)
    Parameters
    Type Name Description
    System.UInt32 first
    System.UInt32 second

    SwapUnchecked(UInt32, UInt32)

    Declaration
    public void SwapUnchecked(uint first, uint second)
    Parameters
    Type Name Description
    System.UInt32 first
    System.UInt32 second
    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