NahidaImpact/NahidaImpact.Kcp/IKcpBufferPool.cs
2024-01-04 16:48:39 +03:00

15 lines
441 B
C#

namespace NahidaImpact.Kcp
{
/// <summary>
/// The buffer pool to rent buffers from.
/// </summary>
public interface IKcpBufferPool
{
/// <summary>
/// Rent a buffer using the specified options.
/// </summary>
/// <param name="options">The options used to rent this buffer.</param>
/// <returns></returns>
KcpRentedBuffer Rent(KcpBufferPoolRentOptions options);
}
}