docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkWriterPool

    Static class containing PooledNetworkWriters

    Inheritance
    object
    NetworkWriterPool
    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 NetworkWriterPool

    Methods

    GetWriter(Stream)

    Retrieves a PooledNetworkWriter

    Declaration
    public static PooledNetworkWriter GetWriter(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    The stream the writer should write to

    Returns
    Type Description
    PooledNetworkWriter

    A PooledNetworkWriter

    PutBackInPool(PooledNetworkWriter)

    Puts a PooledNetworkWriter back into the pool

    Declaration
    public static void PutBackInPool(PooledNetworkWriter writer)
    Parameters
    Type Name Description
    PooledNetworkWriter writer

    The writer 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)