Skip to content

Commit 0dc00ce

Browse files
committed
Update MemoryPoolExtension.cs
1 parent 25b9194 commit 0dc00ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Snap.Hutao/Snap.Hutao/Extension/MemoryPoolExtension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
namespace Snap.Hutao.Extension;
77

8-
internal static class MemoryPoolExtension
8+
internal static partial class MemoryPoolExtension
99
{
1010
public static IMemoryOwner<T> RentExactly<T>(this MemoryPool<T> memoryPool, int bufferSize)
1111
{
1212
IMemoryOwner<T> memoryOwner = memoryPool.Rent(bufferSize);
1313
return new ExactSizedMemoryOwner<T>(memoryOwner, bufferSize);
1414
}
1515

16-
private sealed class ExactSizedMemoryOwner<T> : IMemoryOwner<T>
16+
private sealed partial class ExactSizedMemoryOwner<T> : IMemoryOwner<T>
1717
{
1818
private readonly IMemoryOwner<T> owner;
1919
private readonly int bufferSize;

0 commit comments

Comments
 (0)