UnsafeAppendBuffer
Initializes and returns an instance of UnsafeAppendBuffer.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Constructor
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
UnsafeAppendBuffer(int, int, AllocatorHandle)
Initializes and returns an instance of UnsafeAppendBuffer.
public UnsafeAppendBuffer(int initialCapacity, int alignment, AllocatorManager.AllocatorHandle allocator)
Parameters
The initial allocation size in bytes of the internal buffer.
The byte alignment of the allocation. Must be a non-zero power of 2.
The allocator to use.
UnsafeAppendBuffer(void*, int)
Initializes and returns an instance of UnsafeAppendBuffer that aliases an existing buffer.
public UnsafeAppendBuffer(void* ptr, int length)
Parameters
Remarks
The capacity will be set to , and UnsafeAppendBuffer.Length will be set to 0.
length