コード例 #1
0
 public static T *tnew <T>(Unity.Collections.Allocator allocator = Unity.Collections.Allocator.Persistent) where T : unmanaged
 {
     return(MemUtils.Create <T>(allocator));
 }
コード例 #2
0
 public static void *pnew <T>(ref void *ptr, ref T source, Unity.Collections.Allocator allocator = Unity.Collections.Allocator.Persistent) where T : struct
 {
     return(MemUtils.CreateFromStruct(ref ptr, ref source, allocator));
 }
コード例 #3
0
 //[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
 public static T *tnew <T>(ref T *ptr, ref T source, Unity.Collections.Allocator allocator = Unity.Collections.Allocator.Persistent) where T : unmanaged
 {
     return(MemUtils.Create(ref ptr, ref source, allocator));
 }
コード例 #4
0
 public static void *pnew <T>(Unity.Collections.Allocator allocator = Unity.Collections.Allocator.Persistent) where T : struct
 {
     return(MemUtils.CreateFromStruct <T>(allocator));
 }