docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Try

    Try(ref 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
    int

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

    Implements
    Unity.Collections.AllocatorManager.IAllocator.Try(ref Unity.Collections.AllocatorManager.Block)
    In This Article
    Back to top
    Copyright © 2024 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)