Class PooledNetworkWriter
NetworkWriter to be used with
Inherited Members
Show
Mirage.Serialization.NetworkWriter.ByteCapacity
Mirage.Serialization.NetworkWriter.ByteLength
Mirage.Serialization.NetworkWriter.BitPosition
Mirage.Serialization.NetworkWriter.Reset()
Mirage.Serialization.NetworkWriter.ToArray()
Mirage.Serialization.NetworkWriter.ToArraySegment()
Mirage.Serialization.NetworkWriter.PadToByte()
Mirage.Serialization.NetworkWriter.PadAndCopy<T>(T)
Mirage.Serialization.NetworkWriter.CopyFromWriter(Mirage.Serialization.NetworkWriter)
Syntax
public sealed class PooledNetworkWriter : NetworkWriter, IDisposable
Methods
CreateNew(Int32, Pool<PooledNetworkWriter>)
Declaration
public static PooledNetworkWriter CreateNew(int bufferSize, Pool<PooledNetworkWriter> pool)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | bufferSize | |
Mirage.SocketLayer.Pool<Mirage.Serialization.PooledNetworkWriter> | pool |
Returns
Type | Description |
---|---|
Mirage.Serialization.PooledNetworkWriter |
Release()
Puts object back in Pool
Declaration
public void Release()
IDisposable.Dispose()
Declaration
void IDisposable.Dispose()