public static Buffer2D <T> Allocate2D <T>(this MemoryAllocator memoryAllocator, Size size, AllocationOptions options = AllocationOptions.None) where T : struct => Allocate2D <T>(memoryAllocator, size.Width, size.Height, options);
public static Buffer2D <T> AllocateClean2D <T>(this MemoryAllocator memoryAllocator, int width, int height) where T : struct => Allocate2D <T>(memoryAllocator, width, height, true);
public static IManagedByteBuffer AllocateCleanManagedByteBuffer(this MemoryAllocator memoryAllocator, int length) { return(memoryAllocator.AllocateManagedByteBuffer(length, true)); }
public static Buffer2D <T> Allocate2D <T>(this MemoryAllocator memoryAllocator, Size size) where T : struct => Allocate2D <T>(memoryAllocator, size.Width, size.Height, false);
public static IBuffer <T> AllocateClean <T>(this MemoryAllocator memoryAllocator, int length) where T : struct { return(memoryAllocator.Allocate <T>(length, true)); }