We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b9194 commit 0dc00ceCopy full SHA for 0dc00ce
src/Snap.Hutao/Snap.Hutao/Extension/MemoryPoolExtension.cs
@@ -5,15 +5,15 @@
5
6
namespace Snap.Hutao.Extension;
7
8
-internal static class MemoryPoolExtension
+internal static partial class MemoryPoolExtension
9
{
10
public static IMemoryOwner<T> RentExactly<T>(this MemoryPool<T> memoryPool, int bufferSize)
11
12
IMemoryOwner<T> memoryOwner = memoryPool.Rent(bufferSize);
13
return new ExactSizedMemoryOwner<T>(memoryOwner, bufferSize);
14
}
15
16
- private sealed class ExactSizedMemoryOwner<T> : IMemoryOwner<T>
+ private sealed partial class ExactSizedMemoryOwner<T> : IMemoryOwner<T>
17
18
private readonly IMemoryOwner<T> owner;
19
private readonly int bufferSize;
0 commit comments