mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00: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(byte[] bytes) : base(bytes) {}
|
||||||
internal PooledNetworkReader(ArraySegment<byte> segment) : base(segment) {}
|
internal PooledNetworkReader(ArraySegment<byte> segment) : base(segment) {}
|
||||||
|
public void Dispose() => NetworkReaderPool.Recycle(this);
|
||||||
public void Dispose()
|
|
||||||
{
|
|
||||||
NetworkReaderPool.Recycle(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -7,10 +7,7 @@ namespace Mirror
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed class PooledNetworkWriter : NetworkWriter, IDisposable
|
public sealed class PooledNetworkWriter : NetworkWriter, IDisposable
|
||||||
{
|
{
|
||||||
public void Dispose()
|
public void Dispose() => NetworkWriterPool.Recycle(this);
|
||||||
{
|
|
||||||
NetworkWriterPool.Recycle(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user