mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
syntax
This commit is contained in:
parent
efac1e2f5f
commit
409eac092d
@ -9,11 +9,7 @@ public sealed class PooledNetworkReader : NetworkReader, IDisposable
|
||||
{
|
||||
internal PooledNetworkReader(byte[] bytes) : base(bytes) {}
|
||||
internal PooledNetworkReader(ArraySegment<byte> segment) : base(segment) {}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
NetworkReaderPool.Recycle(this);
|
||||
}
|
||||
public void Dispose() => NetworkReaderPool.Recycle(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -7,10 +7,7 @@ namespace Mirror
|
||||
/// </summary>
|
||||
public sealed class PooledNetworkWriter : NetworkWriter, IDisposable
|
||||
{
|
||||
public void Dispose()
|
||||
{
|
||||
NetworkWriterPool.Recycle(this);
|
||||
}
|
||||
public void Dispose() => NetworkWriterPool.Recycle(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user