docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkBufferPool

    Static class containing PooledNetworkBuffers

    Inheritance
    object
    NetworkBufferPool
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: MLAPI.Serialization.Pooled
    Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
    Syntax
    public static class NetworkBufferPool

    Methods

    GetBuffer()

    Retrieves an expandable PooledNetworkBuffer from the pool

    Declaration
    public static PooledNetworkBuffer GetBuffer()
    Returns
    Type Description
    PooledNetworkBuffer

    An expandable PooledNetworkBuffer

    PutBackInPool(PooledNetworkBuffer)

    Puts a PooledNetworkBuffer back into the pool

    Declaration
    public static void PutBackInPool(PooledNetworkBuffer buffer)
    Parameters
    Type Name Description
    PooledNetworkBuffer buffer

    The buffer to put in the pool

    In This Article
    Back to top
    Copyright © 2025 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)