Class NetworkReaderPool
Static class containing PooledNetworkReaders
Inherited Members
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 |