UnsafePtrList
Initializes and returns an instance of UnsafePtrList.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
UnsafePtrList(`0**, int)
Initializes and returns an instance of UnsafePtrList.
public UnsafePtrList(T** ptr, int length)
Parameters
UnsafePtrList(int, AllocatorHandle, NativeArrayOptions)
Initializes and returns an instance of UnsafePtrList.
public UnsafePtrList(int initialCapacity, AllocatorManager.AllocatorHandle allocator, NativeArrayOptions options = NativeArrayOptions.UninitializedMemory)
Parameters
The initial capacity of the list.
The allocator to use.
Whether newly allocated bytes should be zeroed out.