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