Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

AllocatorManager

class in Unity.Collections

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Manages custom memory allocators.

Static Properties

Property Description
AudioKernel Corresponds to Allocator.AudioKernel.
FirstUserIndex Index in the global function table of the first user-defined allocator.
Invalid Corresponds to Allocator.Invalid.
kErrorBufferOverflow Memory allocation Buffer Overflow status
kErrorNone Memory allocation Success status
MaxNumCustomAllocators Maximum number of user-defined allocators.
None Corresponds to Allocator.None.
Persistent Corresponds to Allocator.Persistent.
Temp Corresponds to Allocator.Temp.
TempJob Corresponds to Allocator.TempJob.

Static Methods

Method Description
Allocate Allocates memory directly from an allocator.
ConvertToAllocatorHandle Convert an Allocator to an AllocatorHandle, keeping the Version.
Free Frees an allocation.
Initialize For internal use only.
Register Saves an allocator's function pointers in a free slot of the global function table. Thread safe.
Shutdown For internal use only.
Try Invokes the allocator function of a block.
UnmanagedUnregister Removes an allocator's function pointers from the global function table, without managed code
Unregister Removes an allocator's function pointers from the global function table.

Delegates

Delegate Description
TryFunction Used for calling an allocator function.