aha
This commit is contained in:
10
Assets/Mirror/Core/NetworkWriterPooled.cs
Normal file
10
Assets/Mirror/Core/NetworkWriterPooled.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System;
|
||||
|
||||
namespace Mirror
|
||||
{
|
||||
/// <summary>Pooled NetworkWriter, automatically returned to pool when using 'using'</summary>
|
||||
public sealed class NetworkWriterPooled : NetworkWriter, IDisposable
|
||||
{
|
||||
public void Dispose() => NetworkWriterPool.Return(this);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user