Constructor NativeRingQueue
NativeRingQueue(int, AllocatorHandle, NativeArrayOptions)
Initializes and returns an instance of NativeRingQueue.
Declaration
public NativeRingQueue(int capacity, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.ClearMemory)
Parameters
Type | Name | Description |
---|---|---|
int | capacity | The capacity. |
AllocatorManager.AllocatorHandle | allocator | The allocator to use. |
NativeArrayOptions | options | Whether newly allocated bytes should be zeroed out. |