Class NetworkWriterPool
Pool of NetworkWriters to avoid allocations.
Inheritance
NetworkWriterPool
Assembly: doc.dll
Syntax
public static class NetworkWriterPool : object
Methods
|
Improve this Doc
View Source
Get()
Get a writer from the pool. Creates new one if pool is empty.
Declaration
public static NetworkWriterPooled Get()
Returns
|
Improve this Doc
View Source
GetWriter()
Declaration
public static NetworkWriterPooled GetWriter()
Returns
|
Improve this Doc
View Source
Recycle(NetworkWriterPooled)
Declaration
public static void Recycle(NetworkWriterPooled writer)
Parameters
|
Improve this Doc
View Source
Return(NetworkWriterPooled)
Return a writer to the pool.
Declaration
public static void Return(NetworkWriterPooled writer)
Parameters