UnsafeRingQueue
Initializes and returns an instance of UnsafeRingQueue which aliasing an existing buffer.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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.