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

    Struct NativeQueue<T>

    Namespace: Unity.Collections
    Syntax
    public struct NativeQueue<T>
        where T : struct
    Type Parameters
    Name Description
    T

    Constructors

    NativeQueue(Allocator)

    Declaration
    public NativeQueue(Allocator label)
    Parameters
    Type Name Description
    Allocator label

    Properties

    Count

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

    IsCreated

    Declaration
    public bool IsCreated { get; }
    Property Value
    Type Description
    System.Boolean

    MemoryBlockSize

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

    PersistentMemoryBlockCount

    Declaration
    public static int PersistentMemoryBlockCount { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    Clear()

    Declaration
    public void Clear()

    Dequeue()

    Declaration
    public T Dequeue()
    Returns
    Type Description
    T

    Dispose()

    Declaration
    public void Dispose()

    Enqueue(T)

    Declaration
    public void Enqueue(T entry)
    Parameters
    Type Name Description
    T entry

    Peek()

    Declaration
    public T Peek()
    Returns
    Type Description
    T

    ToConcurrent()

    Declaration
    public NativeQueue<T>.Concurrent ToConcurrent()
    Returns
    Type Description
    NativeQueue.Concurrent<>

    TryDequeue(out T)

    Declaration
    public bool TryDequeue(out T item)
    Parameters
    Type Name Description
    T item
    Returns
    Type Description
    System.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)
    In This Article
    • Constructors
      • NativeQueue(Allocator)
    • Properties
      • Count
      • IsCreated
      • MemoryBlockSize
      • PersistentMemoryBlockCount
    • Methods
      • Clear()
      • Dequeue()
      • Dispose()
      • Enqueue(T)
      • Peek()
      • ToConcurrent()
      • TryDequeue(out T)
    • Extension Methods
    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