docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AllocateMemory

    AllocateMemory(ref int)

    Calls NetworkDriver's AllocateMemory(ref int)

    Declaration
    public IntPtr AllocateMemory(ref int dataLen)
    Parameters
    Type Name Description
    int dataLen

    Size of memory to allocate in bytes. Must be > 0

    Returns
    Type Description
    IntPtr

    Pointer to allocated memory or IntPtr.Zero if there is no space left (this function doesn't set ReceiveErrorCode! caller should decide if this is Out of memory or something else)

    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)