Struct FixedList32<T> | Collections | 0.5.2-preview.8
docs.unity3d.com
    Show / Hide Table of Contents

    Struct FixedList32<T>

    An unmanaged, resizable list that does not allocate memory. It is 32 bytes in size, and contains all the memory it needs.

    Namespace: Unity.Collections
    Syntax
    public struct FixedList32<T> : IEnumerable<T>, IEnumerable, IEquatable<FixedList32<T>>, IComparable<FixedList32<T>>, IEquatable<FixedList64<T>>, IComparable<FixedList64<T>>, IEquatable<FixedList128<T>>, IComparable<FixedList128<T>>, IEquatable<FixedList512<T>>, IComparable<FixedList512<T>>, IEquatable<FixedList4096<T>>, IComparable<FixedList4096<T>> where T : struct, IComparable<T>
    Type Parameters
    Name Description
    T

    Constructors

    FixedList32(FixedList128<T>)

    Declaration
    public FixedList32(in FixedList128<T> other)
    Parameters
    Type Name Description
    FixedList128<T> other

    FixedList32(FixedList4096<T>)

    Declaration
    public FixedList32(in FixedList4096<T> other)
    Parameters
    Type Name Description
    FixedList4096<T> other

    FixedList32(FixedList512<T>)

    Declaration
    public FixedList32(in FixedList512<T> other)
    Parameters
    Type Name Description
    FixedList512<T> other

    FixedList32(FixedList64<T>)

    Declaration
    public FixedList32(in FixedList64<T> other)
    Parameters
    Type Name Description
    FixedList64<T> other

    Properties

    Capacity

    The number of items that can fit in the list.

    Declaration
    public int Capacity { get; }
    Property Value
    Type Description
    Int32

    The number of items that the list can hold.

    Remarks

    Capacity specifies the number of items the list can currently hold. You can not change Capacity to fit more or fewer items.

    Item[Int32]

    Retrieve a member of the list by index.

    Declaration
    public T this[int index] { get; }
    Parameters
    Type Name Description
    Int32 index

    The zero-based index into the list.

    Property Value
    Type Description
    T

    The list item at the specified index.

    Exceptions
    Type Condition
    IndexOutOfRangeException

    Thrown if index is negative or >= to Length.

    Length

    The current number of items in the list.

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

    The item length.

    Methods

    Add(T)

    Adds an element to the list.

    Declaration
    public void Add(in T item)
    Parameters
    Type Name Description
    T item
    Exceptions
    Type Condition
    IndexOutOfRangeException

    Thrown if list is already full. See Capacity.

    AddNoResize(T)

    Adds an element to the list.

    Declaration
    public void AddNoResize(in T item)
    Parameters
    Type Name Description
    T item
    Exceptions
    Type Condition
    IndexOutOfRangeException

    Thrown if list is already full. See Capacity.

    Clear()

    Clears the list.

    Declaration
    public void Clear()

    CompareTo(FixedList128<T>)

    Declaration
    public int CompareTo(FixedList128<T> other)
    Parameters
    Type Name Description
    FixedList128<T> other
    Returns
    Type Description
    Int32

    CompareTo(FixedList32<T>)

    Declaration
    public int CompareTo(FixedList32<T> other)
    Parameters
    Type Name Description
    FixedList32<T> other
    Returns
    Type Description
    Int32

    CompareTo(FixedList4096<T>)

    Declaration
    public int CompareTo(FixedList4096<T> other)
    Parameters
    Type Name Description
    FixedList4096<T> other
    Returns
    Type Description
    Int32

    CompareTo(FixedList512<T>)

    Declaration
    public int CompareTo(FixedList512<T> other)
    Parameters
    Type Name Description
    FixedList512<T> other
    Returns
    Type Description
    Int32

    CompareTo(FixedList64<T>)

    Declaration
    public int CompareTo(FixedList64<T> other)
    Parameters
    Type Name Description
    FixedList64<T> other
    Returns
    Type Description
    Int32

    Contains(T)

    Declaration
    public bool Contains(in T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    Boolean

    Equals(Object)

    Compares this instance with a specified object and indicates whether this instance is equal to the specified object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The specified object to compare with for equality

    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(FixedList128<T>)

    Declaration
    public bool Equals(FixedList128<T> other)
    Parameters
    Type Name Description
    FixedList128<T> other
    Returns
    Type Description
    Boolean

    Equals(FixedList32<T>)

    Declaration
    public bool Equals(FixedList32<T> other)
    Parameters
    Type Name Description
    FixedList32<T> other
    Returns
    Type Description
    Boolean

    Equals(FixedList4096<T>)

    Declaration
    public bool Equals(FixedList4096<T> other)
    Parameters
    Type Name Description
    FixedList4096<T> other
    Returns
    Type Description
    Boolean

    Equals(FixedList512<T>)

    Declaration
    public bool Equals(FixedList512<T> other)
    Parameters
    Type Name Description
    FixedList512<T> other
    Returns
    Type Description
    Boolean

    Equals(FixedList64<T>)

    Declaration
    public bool Equals(FixedList64<T> other)
    Parameters
    Type Name Description
    FixedList64<T> other
    Returns
    Type Description
    Boolean

    GetEnumerator()

    Returns an enumerator that iterates through a container.

    Declaration
    public FixedList32<T>.Enumerator GetEnumerator()
    Returns
    Type Description
    FixedList32.Enumerator<>

    An IEnumerator object that can be used to iterate through the container.

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    IndexOf(T)

    Declaration
    public int IndexOf(T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    Int32

    IndexOf(T, Int32)

    Declaration
    public int IndexOf(in T item, int index)
    Parameters
    Type Name Description
    T item
    Int32 index
    Returns
    Type Description
    Int32

    IndexOf(T, Int32, Int32)

    Declaration
    public int IndexOf(in T item, int index, int count)
    Parameters
    Type Name Description
    T item
    Int32 index
    Int32 count
    Returns
    Type Description
    Int32

    Insert(Int32, T)

    Declaration
    public void Insert(int index, in T item)
    Parameters
    Type Name Description
    Int32 index
    T item

    InsertRange(Int32, Int32)

    Declaration
    public void InsertRange(int begin, int end)
    Parameters
    Type Name Description
    Int32 begin
    Int32 end

    Remove(T)

    Declaration
    public bool Remove(in T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    Boolean

    RemoveAt(Int32)

    Removes the T at the specified index, and copies all subsequent elements backward to fill the hole so created.

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    Int32 index

    The zero-based index at which to remove the T

    RemoveAtSwapBack(Int32)

    Declaration
    public void RemoveAtSwapBack(int index)
    Parameters
    Type Name Description
    Int32 index

    RemoveRange(Int32, Int32)

    Declaration
    public void RemoveRange(int begin, int end)
    Parameters
    Type Name Description
    Int32 begin
    Int32 end

    RemoveSwapBack(T)

    Declaration
    public void RemoveSwapBack(in T item)
    Parameters
    Type Name Description
    T item

    Sort()

    Declaration
    public void Sort()

    ToArray()

    Declaration
    public T[] ToArray()
    Returns
    Type Description
    T[]

    ToNativeArray(Allocator)

    Declaration
    public NativeArray<T> ToNativeArray(Allocator allocator)
    Parameters
    Type Name Description
    Allocator allocator
    Returns
    Type Description
    NativeArray<T>

    Operators

    Equality(FixedList32<T>, FixedList128<T>)

    Declaration
    public static bool operator ==(in FixedList32<T> a, in FixedList128<T> b)
    Parameters
    Type Name Description
    FixedList32<T> a
    FixedList128<T> b
    Returns
    Type Description
    Boolean

    Equality(FixedList32<T>, FixedList32<T>)

    Declaration
    public static bool operator ==(in FixedList32<T> a, in FixedList32<T> b)
    Parameters
    Type Name Description
    FixedList32<T> a
    FixedList32<T> b
    Returns
    Type Description
    Boolean

    Equality(FixedList32<T>, FixedList4096<T>)

    Declaration
    public static bool operator ==(in FixedList32<T> a, in FixedList4096<T> b)
    Parameters
    Type Name Description
    FixedList32<T> a
    FixedList4096<T> b
    Returns
    Type Description
    Boolean

    Equality(FixedList32<T>, FixedList512<T>)

    Declaration
    public static bool operator ==(in FixedList32<T> a, in FixedList512<T> b)
    Parameters
    Type Name Description
    FixedList32<T> a
    FixedList512<T> b
    Returns
    Type Description
    Boolean

    Equality(FixedList32<T>, FixedList64<T>)

    Declaration
    public static bool operator ==(in FixedList32<T> a, in FixedList64<T> b)
    Parameters
    Type Name Description
    FixedList32<T> a
    FixedList64<T> b
    Returns
    Type Description
    Boolean

    Implicit(FixedList128<T> to FixedList32<T>)

    Declaration
    public static implicit operator FixedList32<T>(in FixedList128<T> other)
    Parameters
    Type Name Description
    FixedList128<T> other
    Returns
    Type Description
    FixedList32<T>

    Implicit(FixedList4096<T> to FixedList32<T>)

    Declaration
    public static implicit operator FixedList32<T>(in FixedList4096<T> other)
    Parameters
    Type Name Description
    FixedList4096<T> other
    Returns
    Type Description
    FixedList32<T>

    Implicit(FixedList512<T> to FixedList32<T>)

    Declaration
    public static implicit operator FixedList32<T>(in FixedList512<T> other)
    Parameters
    Type Name Description
    FixedList512<T> other
    Returns
    Type Description
    FixedList32<T>

    Implicit(FixedList64<T> to FixedList32<T>)

    Declaration
    public static implicit operator FixedList32<T>(in FixedList64<T> other)
    Parameters
    Type Name Description
    FixedList64<T> other
    Returns
    Type Description
    FixedList32<T>

    Inequality(FixedList32<T>, FixedList128<T>)

    Declaration
    public static bool operator !=(in FixedList32<T> a, in FixedList128<T> b)
    Parameters
    Type Name Description
    FixedList32<T> a
    FixedList128<T> b
    Returns
    Type Description
    Boolean

    Inequality(FixedList32<T>, FixedList32<T>)

    Declaration
    public static bool operator !=(in FixedList32<T> a, in FixedList32<T> b)
    Parameters
    Type Name Description
    FixedList32<T> a
    FixedList32<T> b
    Returns
    Type Description
    Boolean

    Inequality(FixedList32<T>, FixedList4096<T>)

    Declaration
    public static bool operator !=(in FixedList32<T> a, in FixedList4096<T> b)
    Parameters
    Type Name Description
    FixedList32<T> a
    FixedList4096<T> b
    Returns
    Type Description
    Boolean

    Inequality(FixedList32<T>, FixedList512<T>)

    Declaration
    public static bool operator !=(in FixedList32<T> a, in FixedList512<T> b)
    Parameters
    Type Name Description
    FixedList32<T> a
    FixedList512<T> b
    Returns
    Type Description
    Boolean

    Inequality(FixedList32<T>, FixedList64<T>)

    Declaration
    public static bool operator !=(in FixedList32<T> a, in FixedList64<T> b)
    Parameters
    Type Name Description
    FixedList32<T> a
    FixedList64<T> b
    Returns
    Type Description
    Boolean

    Extension Methods

    JobNativeMultiHashMapVisitKeyValue.Schedule<TJob, TKey, TValue>(TJob, NativeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobNativeMultiHashMapVisitKeyMutableValue.Schedule<TJob, TKey, TValue>(TJob, NativeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobUnsafeMultiHashMapVisitKeyValue.Schedule<TJob, TKey, TValue>(TJob, UnsafeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    JobUnsafeMultiHashMapVisitKeyMutableValue.Schedule<TJob, TKey, TValue>(TJob, UnsafeMultiHashMap<TKey, TValue>, Int32, JobHandle)
    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