docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ListBuffer<T>

    A list that stores value on a provided memory buffer.

    Usually use this to have a list on stack allocated memory.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public struct ListBuffer<T> where T : unmanaged
    Type Parameters
    Name Description
    T

    The type of the data stored in the list.

    Constructors

    Name Description
    ListBuffer(T*, int*, int)

    Instantiate a new list.

    Properties

    Name Description
    Capacity

    The maximum number of item stored in this list.

    Count

    The number of item in the list.

    this[int]

    Get an item from the list.

    Methods

    Name Description
    CopyTo(T*, int, int)

    Copy the content of this list into another buffer in memory.

    Safety:

    • The destination must have enough memory to receive the copied data.
    GetUnchecked(in int)

    Get an item from the list.

    Safety: index must be inside the bounds of the list.

    TryAdd(in T)

    Try to add a value in the list.

    TryCopyFrom(T*, int)

    Try to copy the data from a buffer in this list.

    TryCopyTo(ListBuffer<T>)

    Try to copy the list into another list.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, bool)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)