Struct AllocatorManager.AllocatorInstallation<T> | Collections | 0.8.0-preview.5
docs.unity.cn
    Show / Hide Table of Contents

    Struct AllocatorManager.AllocatorInstallation<T>

    Mapping between a Block, AllocatorHandle, and an IAllocator.

    Namespace: Unity.Collections
    Syntax
    public struct AllocatorInstallation<T> : IDisposable where T : struct, AllocatorManager.IAllocator, IDisposable
    Type Parameters
    Name Description
    T

    Type of allocator to install functions for.

    Constructors

    AllocatorInstallation(AllocatorManager.AllocatorHandle)

    Creates a Block for an allocator, associates that allocator with an AllocatorHandle, then installs the allocator's function into the function table.

    Declaration
    public AllocatorInstallation(AllocatorManager.AllocatorHandle Handle)
    Parameters
    Type Name Description
    AllocatorManager.AllocatorHandle Handle

    Index into function table at which to install this allocator's function pointer.

    Fields

    m_handle

    Declaration
    public AllocatorManager.AllocatorHandle m_handle
    Field Value
    Type Description
    AllocatorManager.AllocatorHandle

    MBlock

    Declaration
    public AllocatorManager.Block MBlock
    Field Value
    Type Description
    AllocatorManager.Block

    Properties

    Allocator

    Declaration
    public T Allocator { get; }
    Property Value
    Type Description
    T

    Methods

    Dispose()

    Declaration
    public void Dispose()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX