TryAllocateBlock<T>(out Block, int)
Allocates a block from this allocator.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
TryAllocateBlock<T>(Block, int)
public int TryAllocateBlock<T>(out AllocatorManager.Block block, int items) where T : unmanaged
Parameters
Returns
Type | Description |
|---|---|
| int | 0 if successful. Otherwise, returns the error code from the allocator function. |