docs.unity.cn
    Show / Hide Table of Contents

    Interface AllocatorManager.IAllocator

    An allocator with a tryable allocate/free/realloc function pointer.

    Namespace: Unity.Collections
    Syntax
    public interface IAllocator : IDisposable

    Properties

    Function

    The function associated with the allocator

    Declaration
    AllocatorManager.TryFunction Function { get; }
    Property Value
    Type Description
    AllocatorManager.TryFunction

    Handle

    Declaration
    AllocatorManager.AllocatorHandle Handle { get; set; }
    Property Value
    Type Description
    AllocatorManager.AllocatorHandle

    Methods

    Try(ref AllocatorManager.Block)

    Invoke the allocator's function to allocate, free or reallocate a block of memory

    Declaration
    int Try(ref AllocatorManager.Block block)
    Parameters
    Type Name Description
    AllocatorManager.Block block

    The block to work on

    Returns
    Type Description
    Int32

    An error code

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Friday, May 21, 2021