Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AllocatorManager

Manages custom memory allocators.
Read time 1 minuteLast updated 7 days ago

Definition

public static class AllocatorManager

Static Fields

Value

Description

AudioKernelCorresponds to Allocator.AudioKernel.
FirstUserIndexIndex in the global function table of the first user-defined allocator.
InvalidCorresponds to Allocator.Invalid.
kErrorBufferOverflowMemory allocation Buffer Overflow status
kErrorNoneMemory allocation Success status
MaxNumCustomAllocatorsMaximum number of user-defined allocators.
NoneCorresponds to Allocator.None.
PersistentCorresponds to Allocator.Persistent.
TempCorresponds to Allocator.Temp.
TempJobCorresponds to Allocator.TempJob.

Static Methods

Method

Description

AllocateAllocates memory from an allocator.
ConvertToAllocatorHandleConvert an Allocator to an AllocatorHandle, keeping the Version.
FreeFrees an allocation.
InitializeFor internal use only.
RegisterSaves an allocator's function pointers in a free slot of the global function table. Thread safe.
ShutdownFor internal use only.
TryInvokes the allocator function of a block.
UnmanagedUnregisterRemoves an allocator's function pointers from the global function table, without managed code
UnregisterRemoves an allocator's function pointers from the global function table.

Structs

Struct

Description

AllocatorManager.AllocatorHandleRepresents the allocator function used within an allocator.
AllocatorManager.BlockRepresents an individual allocation within an allocator.
AllocatorManager.BlockHandleFor internal use only.
AllocatorManager.RangeA range of allocated memory.

Interfaces

Interface

Description

AllocatorManager.IAllocatorAn allocator function pointer.

Delegates

Delegate

Description

AllocatorManager.TryFunctionUsed for calling an allocator function.