ドキュメント

Unity Engine

Unity Engine

UnsafeRingQueue

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

Definition

UnsafeRingQueue(`0*, int)

Initializes and returns an instance of UnsafeRingQueue which aliasing an existing buffer.
public UnsafeRingQueue(T* ptr, int capacity)

Parameters

ptr

An existing buffer to set as the internal buffer.

capacity

The capacity.

UnsafeRingQueue(int, AllocatorHandle, NativeArrayOptions)

Initializes and returns an instance of UnsafeRingQueue.
public UnsafeRingQueue(int capacity, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.ClearMemory)

Parameters

capacity

The capacity.

The allocator to use.

Whether newly allocated bytes should be zeroed out.