Skip to main content

MLAPI.Serialization.Pooled.NetworkWriterPool

Static class containing PooledNetworkWriters

Inheritance#

System.Dynamic.ExpandoObject

System.Dynamic.ExpandoObject

Inherited Members#

Object.Equals(Object)

Object.Equals(Object, Object)

Object.GetHashCode()

Object.GetType()

Object.MemberwiseClone()

Object.ReferenceEquals(Object, Object)

Object.ToString()

Namespace: System.Dynamic.ExpandoObject#
Assembly: MLAPI.dll#
Syntax#
public static class NetworkWriterPool

Methods#

GetWriter(Stream)#

Retrieves a PooledNetworkWriter

Declaration#

public static PooledNetworkWriter GetWriter(Stream stream)

Parameters#

TypeNameDescription
System.IO.StreamstreamThe stream the writer should write to

Returns#

TypeDescription
PooledNetworkWriterA PooledNetworkWriter

PutBackInPool(PooledNetworkWriter)#

Puts a PooledNetworkWriter back into the pool

Declaration#

public static void PutBackInPool(PooledNetworkWriter writer)

Parameters#

TypeNameDescription
PooledNetworkWriterwriterThe writer to put in the pool