3using System.Runtime.CompilerServices;
23 [Obsolete(
"GetWriter() was renamed to Get()")]
27 [MethodImpl(MethodImplOptions.AggressiveInlining)]
37 [Obsolete(
"Recycle() was renamed to Return()")]
41 [MethodImpl(MethodImplOptions.AggressiveInlining)]
void Reset()
Reset both the position and length of the stream
Pool of NetworkWriters to avoid allocations.
static void Return(NetworkWriterPooled writer)
Return a writer to the pool.
static NetworkWriterPooled Get()
Get a writer from the pool. Creates new one if pool is empty.
Pooled NetworkWriter, automatically returned to pool when using 'using'