public static T *tnew <T>(Unity.Collections.Allocator allocator = Unity.Collections.Allocator.Persistent) where T : unmanaged { return(MemUtils.Create <T>(allocator)); }
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)); }
//[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)); }
public static void *pnew <T>(Unity.Collections.Allocator allocator = Unity.Collections.Allocator.Persistent) where T : struct { return(MemUtils.CreateFromStruct <T>(allocator)); }