{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Struct AllocatorManager.AllocatorHandle | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct AllocatorManager.AllocatorHandle

    Represents the allocator function used within an allocator.

    Implements
    AllocatorManager.IAllocator
    Namespace: Unity.Collections
    Assembly: solution.dll
    Syntax
    public struct AllocatorManager.AllocatorHandle : AllocatorManager.IAllocator

    Fields

    Name Description
    Index

    This allocator's index into the global table of allocator functions.

    Version

    This allocator's version number.

    Properties

    Name Description
    Handle

    This handle.

    IsAutoDispose

    Check whether this allocator will automatically dispose allocations.

    IsCustomAllocator

    Check whether this allocator is a custom allocator.

    ToAllocator

    Retrieve the Allocator associated with this allocator handle.

    Value

    The Index cast to int.

    Methods

    Name Description
    AllocateBlock<T>(int)

    Allocates a block with this allocator function.

    CompareTo(AllocatorHandle)

    Compare this AllocatorManager.AllocatorHandle against a given one

    Dispose()

    Dispose the allocator.

    Equals(object)

    AllocatorManager.AllocatorHandle instances are equal if they refer to the same instance at the same version.

    Equals(Allocator)

    AllocatorManager.AllocatorHandle instances are equal if they refer to the same instance at the same version.

    Equals(AllocatorHandle)

    AllocatorManager.AllocatorHandle instances are equal if they refer to the same instance at the same version.

    GetHashCode()

    A hash used for comparisons.

    Try(ref Block)

    Tries to allocate the block with this allocator.

    TryAllocateBlock<T>(out Block, int)

    Allocates a block from this allocator.

    Operators

    Name Description
    operator ==(AllocatorHandle, AllocatorHandle)

    Evaluates if one AllocatorManager.AllocatorHandle is equal to the other.

    operator >(AllocatorHandle, AllocatorHandle)

    Evaluates if one AllocatorManager.AllocatorHandle is greater than the other.

    operator >=(AllocatorHandle, AllocatorHandle)

    Evaluates if one AllocatorManager.AllocatorHandle is greater than or equal to the other.

    implicit operator AllocatorHandle(Allocator)

    Implicitly convert an Allocator to an AllocatorHandle with its Version being reset to 0.

    operator !=(AllocatorHandle, AllocatorHandle)

    Evaluates if one AllocatorManager.AllocatorHandle is not equal to the other.

    operator <(AllocatorHandle, AllocatorHandle)

    Evaluates if one AllocatorManager.AllocatorHandle is less than the other.

    operator <=(AllocatorHandle, AllocatorHandle)

    Evaluates if one AllocatorManager.AllocatorHandle is less than or equal to the other.

    Extension Methods

    AllocatorManager.Allocate<T>(ref T, int, int, int)
    AllocatorManager.Register<T>(ref T, bool, bool, int)
    AllocatorManager.UnmanagedUnregister<T>(ref T)
    AllocatorManager.Unregister<T>(ref T)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)