This commit is contained in:
2026-02-11 20:50:03 +05:30
parent df77848ca5
commit 614c38bdaf
2303 changed files with 256620 additions and 4 deletions
+12
View File
@@ -0,0 +1,12 @@
using System;
namespace Mirror
{
/// <summary>Pooled NetworkReader, automatically returned to pool when using 'using'</summary>
public sealed class NetworkReaderPooled : NetworkReader, IDisposable
{
internal NetworkReaderPooled(byte[] bytes) : base(bytes) {}
internal NetworkReaderPooled(ArraySegment<byte> segment) : base(segment) {}
public void Dispose() => NetworkReaderPool.Return(this);
}
}