UnsafeRingQueue
Initializes and returns an instance of UnsafeRingQueue which aliasing an existing buffer.
Read time 1 minuteLast updated 17 days ago
Definition
- Type: Constructor
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
UnsafeRingQueue(`0*, int)
Initializes and returns an instance of UnsafeRingQueue which aliasing an existing buffer.
public UnsafeRingQueue(T* ptr, int capacity)
Parameters
UnsafeRingQueue(int, AllocatorHandle, NativeArrayOptions)
Initializes and returns an instance of UnsafeRingQueue.
public UnsafeRingQueue(int capacity, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.ClearMemory)
Parameters
The capacity.
The allocator to use.
Whether newly allocated bytes should be zeroed out.