docs.unity.cn
    Show / Hide Table of Contents

    Method Try

    Try(ref AllocatorManager.Block)

    Try to allocate, free, or reallocate a block of memory.

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

    The memory block to allocate, free, or reallocate

    Returns
    Type Description
    Int32

    0 if successful. Otherwise, returns the error code from the allocator function.

    Implements
    AllocatorManager.IAllocator.Try(ref AllocatorManager.Block)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023