Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AllocatorManager.AllocatorHandle

Represents the allocator function used within an allocator.
Read time 1 minuteLast updated 10 days ago

Definition

public struct AllocatorManager.AllocatorHandle : AllocatorManager.IAllocator, IDisposable, IEquatable<AllocatorManager.AllocatorHandle>, IComparable<AllocatorManager.AllocatorHandle>

Fields

Value

Description

IndexThis allocator's index into the global table of allocator functions.
VersionThis allocator's version number.

Static Fields

Value

Description

InvalidChildAllocatorIndexFor internal use only.
InvalidChildSafetyHandleIndexFor internal use only.

Properties

Property

Description

FunctionFor internal use only.
HandleThis handle.
IsAutoDisposeCheck whether this allocator will automatically dispose allocations.
IsCustomAllocatorCheck whether this allocator is a custom allocator.
ToAllocatorRetrieve the Allocator associated with this allocator handle.
ValueThe AllocatorManager.AllocatorHandle.Index cast to int.

Methods

Method

Description

AllocateBlockAllocates a block with this allocator function.
CompareToCompare this AllocatorManager.AllocatorHandle against a given one
DisposeDispose the allocator.
EqualsAllocatorManager.AllocatorHandle instances are equal if they refer to the same instance at the same version.
GetHashCodeA hash used for comparisons.
TryTries to allocate the block with this allocator.
TryAllocateBlockAllocates a block from this allocator.

Operators

Operator

Description

operator ==Evaluates if one AllocatorManager.AllocatorHandle is equal to the other.
operator >Evaluates if one AllocatorManager.AllocatorHandle is greater than the other.
operator >=Evaluates if one AllocatorManager.AllocatorHandle is greater than or equal to the other.
AllocatorHandleImplicitly convert an Allocator to an AllocatorHandle with its Version being reset to 0.
operator !=Evaluates if one AllocatorManager.AllocatorHandle is not equal to the other.
operator <Evaluates if one AllocatorManager.AllocatorHandle is less than the other.
operator <=Evaluates if one AllocatorManager.AllocatorHandle is less than or equal to the other.