Struct NativeQueue<T>
Syntax
public struct NativeQueue<T>
where T : struct
Type Parameters
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
Dequeue()
Declaration
Returns
Dispose()
Declaration
Enqueue(T)
Declaration
public void Enqueue(T entry)
Parameters
Type |
Name |
Description |
T |
entry |
|
Peek()
Declaration
Returns
ToConcurrent()
Declaration
public NativeQueue<T>.Concurrent ToConcurrent()
Returns
TryDequeue(out T)
Declaration
public bool TryDequeue(out T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods