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)
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX