diff --git a/src/ImageSharp/Memory/MemoryAllocatorExtensions.cs b/src/ImageSharp/Memory/MemoryAllocatorExtensions.cs
index b596351b5..a3fa0e1ff 100644
--- a/src/ImageSharp/Memory/MemoryAllocatorExtensions.cs
+++ b/src/ImageSharp/Memory/MemoryAllocatorExtensions.cs
@@ -1,4 +1,4 @@
-// Copyright (c) Six Labors and contributors.
+// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System.Buffers;
@@ -11,8 +11,18 @@ namespace SixLabors.ImageSharp.Memory
///
/// Extension methods for .
///
- internal static class MemoryAllocatorExtensions
+ public static class MemoryAllocatorExtensions
{
+ ///
+ /// Allocates a buffer of value type objects interpreted as a 2D region
+ /// of x elements.
+ ///
+ /// The type of buffer items to allocate.
+ /// The memory allocator.
+ /// The buffer width.
+ /// The buffer heght.
+ /// The allocation options.
+ /// The .
public static Buffer2D Allocate2D(
this MemoryAllocator memoryAllocator,
int width,
@@ -26,6 +36,15 @@ namespace SixLabors.ImageSharp.Memory
return new Buffer2D(memorySource, width, height);
}
+ ///
+ /// Allocates a buffer of value type objects interpreted as a 2D region
+ /// of width x height elements.
+ ///
+ /// The type of buffer items to allocate.
+ /// The memory allocator.
+ /// The buffer size.
+ /// The allocation options.
+ /// The .
public static Buffer2D Allocate2D(
this MemoryAllocator memoryAllocator,
Size size,
@@ -41,7 +60,7 @@ namespace SixLabors.ImageSharp.Memory
/// The pixel size in bytes, eg. 3 for RGB
/// The padding
/// A
- public static IManagedByteBuffer AllocatePaddedPixelRowBuffer(
+ internal static IManagedByteBuffer AllocatePaddedPixelRowBuffer(
this MemoryAllocator memoryAllocator,
int width,
int pixelSizeInBytes,
@@ -51,4 +70,4 @@ namespace SixLabors.ImageSharp.Memory
return memoryAllocator.AllocateManagedByteBuffer(length);
}
}
-}
\ No newline at end of file
+}