Skip to main content

Class NetworkWriterPool

Inheritance​
System.Object
Inherited Members​
Show
Syntax​
public static class NetworkWriterPool

Properties​

BufferSize​

Current Size of buffers, or null before Configure has been called

Declaration​
public static int? BufferSize { get; }

Methods​

Configure(Int32, Int32, Int32)​

Configures an exist pool or creates a new one Does not create a new pool if bufferSize is less that current

Declaration​
public static void Configure(int bufferSize, int startPoolSize = 5, int maxPoolSize = 100)
Parameters​
TypeNameDescription
System.Int32bufferSizestarting capacity of buffer
System.Int32startPoolSize
System.Int32maxPoolSize

GetWriter()​

Declaration​
public static PooledNetworkWriter GetWriter()
Returns​
TypeDescription
Mirage.Serialization.PooledNetworkWriter