14 lines
379 B
C#
14 lines
379 B
C#
using Microsoft.AspNet.Server.Kestrel.Infrastructure;
|
|
|
|
namespace Microsoft.AspNet.Server.KestrelTests
|
|
{
|
|
public static class MemoryPoolExtensions
|
|
{
|
|
public static MemoryPoolIterator2 Add(this MemoryPoolIterator2 iterator, int count)
|
|
{
|
|
int actual;
|
|
return iterator.CopyTo(new byte[count], 0, count, out actual);
|
|
}
|
|
}
|
|
}
|