docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NetworkReaderPool

    Static class containing PooledNetworkReaders

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

    Methods

    GetReader(Stream)

    Retrieves a PooledNetworkReader

    Declaration
    public static PooledNetworkReader GetReader(Stream stream)
    Parameters
    Type Name Description
    Stream stream

    The stream the reader should read from

    Returns
    Type Description
    PooledNetworkReader

    A PooledNetworkReader

    PutBackInPool(PooledNetworkReader)

    Puts a PooledNetworkReader back into the pool

    Declaration
    public static void PutBackInPool(PooledNetworkReader reader)
    Parameters
    Type Name Description
    PooledNetworkReader reader

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