Class PooledNetworkReader
Disposable NetworkReader that returns the Reader to the NetworkReaderPool when disposed
Implements
Inherited Members
Namespace: MLAPI.Serialization.Pooled
Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
Syntax
public sealed class PooledNetworkReader : NetworkReader, IDisposable
Properties
Serializer
Declaration
public NetworkSerializer Serializer { get; }
Property Value
| Type | Description |
|---|---|
| NetworkSerializer |
Methods
Dispose()
Returns the PooledNetworkReader into the static NetworkReaderPool
Declaration
public void Dispose()
Get(Stream)
Gets a PooledNetworkReader from the static NetworkReaderPool
Declaration
public static PooledNetworkReader Get(Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream |
Returns
| Type | Description |
|---|---|
| PooledNetworkReader | PooledNetworkReader |