文档

Unity Engine

Unity Engine

Register<T>(ref T, bool, bool, int)

Saves an allocator's function pointers in a free slot of the global function table. Thread safe.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

Register<T>(T, bool, bool, int)

[ExcludeFromBurstCompatTesting("Uses managed delegate")]public static void Register<T>(this ref T t, bool IsAutoDispose = false, bool isGlobal = false, int globalIndex = 0) where T : unmanaged, AllocatorManager.IAllocator

Parameters

t

T
Reference to the allocator.

IsAutoDispose

Flag indicating if the allocator will automatically dispose allocations.

isGlobal

Flag indicating if the allocator is a global allocator.

globalIndex

Index into the global function table of the allocator to be created.