mirror of
https://github.com/sebastian-heinz/mhf-server.git
synced 2025-04-03 13:28:30 +08:00
20 lines
408 B
C#
20 lines
408 B
C#
using Arrowgene.Services.Buffers;
|
|
|
|
namespace Mhf.Server.Common
|
|
{
|
|
public class BufferProvider
|
|
{
|
|
private static readonly IBufferProvider Provider = new StreamBuffer();
|
|
|
|
public static IBuffer Provide()
|
|
{
|
|
return Provider.Provide();
|
|
}
|
|
|
|
public static IBuffer Provide(byte[] data)
|
|
{
|
|
return Provider.Provide(data);
|
|
}
|
|
}
|
|
}
|