mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-14 13:54:43 +01:00
Init enter game
This commit is contained in:
11
KcpSharp/Base/DefaultArrayPoolBufferAllocator.cs
Normal file
11
KcpSharp/Base/DefaultArrayPoolBufferAllocator.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace KianaBH.KcpSharp.Base;
|
||||
|
||||
internal sealed class DefaultArrayPoolBufferAllocator : IKcpBufferPool
|
||||
{
|
||||
public static DefaultArrayPoolBufferAllocator Default { get; } = new();
|
||||
|
||||
public KcpRentedBuffer Rent(KcpBufferPoolRentOptions options)
|
||||
{
|
||||
return KcpRentedBuffer.FromSharedArrayPool(options.Size);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user