Documentation

Unity Engine


User Manual

Script Reference

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.
Read time 1 minuteLast updated 13 days ago

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.