{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct FixedList4096Bytes<T> | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct FixedList4096Bytes<T>

    An unmanaged, resizable list whose content is all stored directly in the 4096-byte struct. Useful for small lists.

    Implements
    INativeList<T>
    IIndexable<T>
    Namespace: Unity.Collections
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct FixedList4096Bytes<T> : INativeList<T>, IIndexable<T> where T : unmanaged
    Type Parameters
    Name Description
    T

    The type of the elements.

    Constructors

    Name Description
    FixedList4096Bytes(in FixedList128Bytes<T>)

    Initializes and returns an instance of FixedList4096Bytes with content copied from another list.

    FixedList4096Bytes(in FixedList32Bytes<T>)

    Initializes and returns an instance of FixedList4096Bytes with content copied from another list.

    FixedList4096Bytes(in FixedList512Bytes<T>)

    Initializes and returns an instance of FixedList4096Bytes with content copied from another list.

    FixedList4096Bytes(in FixedList64Bytes<T>)

    Initializes and returns an instance of FixedList4096Bytes with content copied from another list.

    Properties

    Name Description
    Capacity

    The number of elements that can fit in this list.

    IsEmpty

    Whether this list is empty.

    this[int]

    The element at a given index.

    Length

    The current number of items in this list.

    Methods

    Name Description
    Add(in T)

    Appends an element to the end of this list. Increments the length by 1.

    AddNoResize(in T)

    Appends an element to the end of this list. Increments the length by 1.

    AddRange(void*, int)

    Appends elements from a buffer to the end of this list. Increments the length by the number of appended elements.

    AddRangeNoResize(void*, int)

    Appends elements from a buffer to the end of this list. Increments the length by the number of appended elements.

    AddReplicate(in T, int)

    Appends value count times to the end of this list.

    Clear()

    Sets the length to 0.

    CompareTo(FixedList128Bytes<T>)

    Returns a number denoting whether this list should be placed before or after another list in a sort.

    CompareTo(FixedList32Bytes<T>)

    Returns a number denoting whether this list should be placed before or after another list in a sort.

    CompareTo(FixedList4096Bytes<T>)

    Returns a number denoting whether this list should be placed before or after another list in a sort.

    CompareTo(FixedList512Bytes<T>)

    Returns a number denoting whether this list should be placed before or after another list in a sort.

    CompareTo(FixedList64Bytes<T>)

    Returns a number denoting whether this list should be placed before or after another list in a sort.

    ElementAt(int)

    Returns the element at a given index.

    Equals(object)

    Returns true if the list is equal to an object.

    Equals(FixedList128Bytes<T>)

    Returns true if this list and another list are equal.

    Equals(FixedList32Bytes<T>)

    Returns true if this list and another list are equal.

    Equals(FixedList4096Bytes<T>)

    Returns true if this list and another list are equal.

    Equals(FixedList512Bytes<T>)

    Returns true if this list and another list are equal.

    Equals(FixedList64Bytes<T>)

    Returns true if this list and another list are equal.

    GetEnumerator()

    Returns an enumerator for iterating over the elements of this list.

    GetHashCode()

    Returns the hash code of this list.

    Insert(int, in T)

    Inserts a single element at an index. Increments the length by 1.

    InsertRange(int, int)

    Shifts elements toward the end of this list, increasing its length.

    InsertRangeWithBeginEnd(int, int)

    Shifts elements toward the end of this list, increasing its length.

    RemoveAt(int)

    Removes the element at an index. Shifts everything above the index down by one and decrements the length by 1.

    RemoveAtSwapBack(int)

    Copies the last element of this list to an index. Decrements the length by 1.

    RemoveRange(int, int)

    Removes N elements of a range. Shifts everything above the range down by N and decrements the length by N.

    RemoveRangeSwapBack(int, int)

    Copies the last N elements of this list to a range in this list. Decrements the length by N.

    ToArray()

    Returns a managed array that is a copy of this list.

    ToNativeArray(AllocatorHandle)

    Returns an array that is a copy of this list.

    Operators

    Name Description
    operator ==(in FixedList4096Bytes<T>, in FixedList128Bytes<T>)

    Returns true if two lists are equal.

    operator ==(in FixedList4096Bytes<T>, in FixedList32Bytes<T>)

    Returns true if two lists are equal.

    operator ==(in FixedList4096Bytes<T>, in FixedList4096Bytes<T>)

    Returns true if two lists are equal.

    operator ==(in FixedList4096Bytes<T>, in FixedList512Bytes<T>)

    Returns true if two lists are equal.

    operator ==(in FixedList4096Bytes<T>, in FixedList64Bytes<T>)

    Returns true if two lists are equal.

    implicit operator FixedList4096Bytes<T>(in FixedList128Bytes<T>)

    Returns a new list that is a copy of another list.

    implicit operator FixedList4096Bytes<T>(in FixedList32Bytes<T>)

    Returns a new list that is a copy of another list.

    implicit operator FixedList4096Bytes<T>(in FixedList512Bytes<T>)

    Returns a new list that is a copy of another list.

    implicit operator FixedList4096Bytes<T>(in FixedList64Bytes<T>)

    Returns a new list that is a copy of another list.

    operator !=(in FixedList4096Bytes<T>, in FixedList128Bytes<T>)

    Returns true if two lists are unequal.

    operator !=(in FixedList4096Bytes<T>, in FixedList32Bytes<T>)

    Returns true if two lists are unequal.

    operator !=(in FixedList4096Bytes<T>, in FixedList4096Bytes<T>)

    Returns true if two lists are unequal.

    operator !=(in FixedList4096Bytes<T>, in FixedList512Bytes<T>)

    Returns true if two lists are unequal.

    operator !=(in FixedList4096Bytes<T>, in FixedList64Bytes<T>)

    Returns true if two lists are unequal.

    Extension Methods

    FixedList4096BytesExtensions.Contains<T, U>(ref FixedList4096Bytes<T>, U)
    FixedList4096BytesExtensions.IndexOf<T, U>(ref FixedList4096Bytes<T>, U)
    FixedList4096BytesExtensions.RemoveSwapBack<T, U>(ref FixedList4096Bytes<T>, U)
    FixedList4096BytesExtensions.Remove<T, U>(ref FixedList4096Bytes<T>, U)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)