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);
Exemple #2
0
 public static Buffer2D <T> AllocateClean2D <T>(this MemoryAllocator memoryAllocator, int width, int height)
     where T : struct =>
 Allocate2D <T>(memoryAllocator, width, height, true);
Exemple #3
0
 public static IManagedByteBuffer AllocateCleanManagedByteBuffer(this MemoryAllocator memoryAllocator, int length)
 {
     return(memoryAllocator.AllocateManagedByteBuffer(length, true));
 }
Exemple #4
0
 public static Buffer2D <T> Allocate2D <T>(this MemoryAllocator memoryAllocator, Size size)
     where T : struct =>
 Allocate2D <T>(memoryAllocator, size.Width, size.Height, false);
Exemple #5
0
 public static IBuffer <T> AllocateClean <T>(this MemoryAllocator memoryAllocator, int length)
     where T : struct
 {
     return(memoryAllocator.Allocate <T>(length, true));
 }